From df9ba7109dfb11d1db1b6c29a9927f22f4e1eee5 Mon Sep 17 00:00:00 2001 From: Mark McDonald Date: Mon, 15 Jun 2015 16:47:59 +1000 Subject: [PATCH] Fixed typo in rate limit test --- 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 05c817b..f4626f4 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -381,7 +381,7 @@ func TestDo_rateLimit(t *testing.T) { if got, want := client.Rate.Limit, 0; got != want { t.Errorf("Client rate limit = %v, want %v", got, want) } - if got, want := client.Rate.Limit, 0; got != want { + if got, want := client.Rate.Remaining, 0; got != want { t.Errorf("Client rate remaining = %v, got %v", got, want) } if !client.Rate.Reset.IsZero() {