From fe49f0b616d48daa315c6a35323281c4fb95229a Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Fri, 2 Oct 2015 12:39:25 +0200 Subject: [PATCH] Fix exported test function --- context_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context_test.go b/context_test.go index 3deecad..8232af9 100644 --- a/context_test.go +++ b/context_test.go @@ -239,14 +239,14 @@ func TestContextPostFormMultipart(t *testing.T) { } func TestContextSetCookie(t *testing.T) { - c, _, _ := createTestContext() + c, _, _ := CreateTestContext() c.SetCookie("user", "gin", 1, "/", "localhost", true, true) c.Request, _ = http.NewRequest("GET", "/set", nil) assert.Equal(t, c.Writer.Header().Get("Set-Cookie"), "user=gin; Path=/; Domain=localhost; Max-Age=1; HttpOnly; Secure") } func TestContextGetCookie(t *testing.T) { - c, _, _ := createTestContext() + c, _, _ := CreateTestContext() c.Request, _ = http.NewRequest("GET", "/get", nil) c.Request.Header.Set("Cookie", "user=gin") cookie, _ := c.GetCookie("user")