From a69fa76cb5fe2436cbd2c356beb0fa8da9050855 Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Tue, 17 May 2016 15:03:41 -0700 Subject: [PATCH] fix unit tests for go1.7 release An upcoming change to Go 1.7 allows the json package to be able to encode maps with the integer keys. Thus, this is no longer a good way to generate intentional JSON failures. Reference: https://github.com/golang/go/commit/f05c3aa24d815cd3869153750c9875e35fc48a6e --- 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 521f12a..d404a00 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -198,7 +198,7 @@ func TestNewRequest_invalidJSON(t *testing.T) { c := NewClient(nil) type T struct { - A map[int]interface{} + A map[interface{}]interface{} } _, err := c.NewRequest("GET", "/", &T{})