Skip to content

Commit 695f0e7

Browse files
test: Use %v verb in rate limit sleep callback tests
golangci-lint (fmtpercentv) requires %v instead of %d.
1 parent 0bb9d6d commit 695f0e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎github/github_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ func TestDo_rateLimit_sleepCallbackOnResponseResetLimit(t *testing.T) {
27932793
}
27942794

27952795
if callbackCount != 1 {
2796-
t.Errorf("rate limit sleep callback called %d times, want 1", callbackCount)
2796+
t.Errorf("rate limit sleep callback called %v times, want 1", callbackCount)
27972797
}
27982798
if got, want := gotInfo.Rate.Reset.Unix(), reset.Unix(); got != want {
27992799
t.Errorf("callback Rate.Reset = %v, want %v", got, want)
@@ -2835,7 +2835,7 @@ func TestDo_rateLimit_sleepCallbackOnClientResetLimit(t *testing.T) {
28352835
}
28362836

28372837
if callbackCount != 1 {
2838-
t.Errorf("rate limit sleep callback called %d times, want 1", callbackCount)
2838+
t.Errorf("rate limit sleep callback called %v times, want 1", callbackCount)
28392839
}
28402840
if got, want := gotInfo.Rate.Reset.Unix(), reset.Unix(); got != want {
28412841
t.Errorf("callback Rate.Reset = %v, want %v", got, want)

0 commit comments

Comments
 (0)