From 7bf97883262733f7534fce486727ed6cea1e86bb Mon Sep 17 00:00:00 2001 From: Damon Zhao Date: Thu, 27 Aug 2015 16:16:16 +0800 Subject: [PATCH] fix ci --- context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context_test.go b/context_test.go index 5697a04..cb704bb 100644 --- a/context_test.go +++ b/context_test.go @@ -260,7 +260,7 @@ func TestContextGetCookie(t *testing.T) { c, w, _ := createTestContext() c.Request, _ = http.NewRequest("GET", "/get", nil) c.Request.Header.Set("Cookie", "user=gin") - assert.Equal(t, w.Body.String(), "gin") + assert.Equal(t, c.GetCookie("Cookie"), "gin") } // Tests that the response is serialized as JSON