From 0e3941cd1f14d0322165504974eeefab7e1ddc6d Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 21 Apr 2016 20:23:41 -0700 Subject: [PATCH] Improve test error message. Print the actual value that doesn't match. Minor followup fix for c3f5683ad1dfe8c2c5aad4a7bbe536cbdc4a1009 (#277). --- github/github_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/github_test.go b/github/github_test.go index 00b8315..06abcc5 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -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) } }