1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

Use f variant to parse formatting (#17751)

As title.
This commit is contained in:
Gusted 2021-11-22 06:18:31 +00:00 committed by GitHub
parent 55e9228866
commit 7743f13bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,7 +334,7 @@ func TestAPIRepoMigrate(t *testing.T) {
case "You can not import from disallowed hosts.": case "You can not import from disallowed hosts.":
assert.EqualValues(t, "private-ip", testCase.repoName) assert.EqualValues(t, "private-ip", testCase.repoName)
default: default:
assert.Fail(t, "unexpected error '%v' on url '%s'", respJSON["message"], testCase.cloneURL) assert.Failf(t, "unexpected error '%v' on url '%s'", respJSON["message"], testCase.cloneURL)
} }
} else { } else {
assert.EqualValues(t, testCase.expectedStatus, resp.Code) assert.EqualValues(t, testCase.expectedStatus, resp.Code)