Browse Source

Improve test error message.

Print the actual value that doesn't match.

Minor followup fix for c3f5683ad1 (#277).
Dmitri Shuralyov 10 years ago
parent
commit
0e3941cd1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      github/github_test.go

+ 1
- 1
github/github_test.go View File

@ -474,7 +474,7 @@ func TestDo_rateLimit_rateLimitError(t *testing.T) {
}
reset := time.Date(2013, 7, 1, 17, 47, 53, 0, time.UTC)
if rateLimitErr.Rate.Reset.UTC() != reset {
t.Errorf("rateLimitErr rate reset = %v, want %v", client.Rate().Reset, reset)
t.Errorf("rateLimitErr rate reset = %v, want %v", rateLimitErr.Rate.Reset.UTC(), reset)
}
}


Loading…
Cancel
Save