Skip to content

Commit

Permalink
make test failure message accurate by derefing pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Nov 16, 2023
1 parent 35ac32d commit bce4649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/githubrepo/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ func Test_getCommits_retry(t *testing.T) {
}
want := retryLimit + 1 // 1 represents the initial request
if *rt.requestCounter != want {
t.Errorf("wanted %d retries, got %d", want, rt.requestCounter)
t.Errorf("wanted %d retries, got %d", want, *rt.requestCounter)
}
}

0 comments on commit bce4649

Please sign in to comment.