浏览代码

Fix exported test function

Javier Provecho Fernandez 10 年之前
父节点
当前提交
fe49f0b616
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      context_test.go

+ 2 - 2
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")