mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
fix #2158 and more
This commit is contained in:
@@ -20,7 +20,7 @@ func TestCookiesBasic(t *testing.T) {
|
||||
|
||||
// Test retrieve a Cookie.
|
||||
t2 := e.GET(fmt.Sprintf("/cookies/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t2.Body().Equal(cookieValue)
|
||||
t2.Body().IsEqual(cookieValue)
|
||||
|
||||
// Test remove a Cookie.
|
||||
t3 := e.DELETE(fmt.Sprintf("/cookies/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
@@ -28,5 +28,5 @@ func TestCookiesBasic(t *testing.T) {
|
||||
|
||||
t4 := e.GET(fmt.Sprintf("/cookies/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t4.Cookies().Empty()
|
||||
t4.Body().Empty()
|
||||
t4.Body().IsEmpty()
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ func TestCookieOptions(t *testing.T) {
|
||||
|
||||
// Test retrieve a Cookie.
|
||||
t2 := e.GET(fmt.Sprintf("/get/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t2.Body().Equal(cookieValue)
|
||||
t2.Body().IsEqual(cookieValue)
|
||||
|
||||
// Test remove a Cookie.
|
||||
t3 := e.GET(fmt.Sprintf("/remove/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
@@ -28,5 +28,5 @@ func TestCookieOptions(t *testing.T) {
|
||||
|
||||
t4 := e.GET(fmt.Sprintf("/get/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t4.Cookies().Empty()
|
||||
t4.Body().Empty()
|
||||
t4.Body().IsEmpty()
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ func TestSecureCookie(t *testing.T) {
|
||||
|
||||
// Test retrieve a Cookie.
|
||||
t2 := e.GET(fmt.Sprintf("/cookies/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t2.Body().Equal(cookieValue)
|
||||
t2.Body().IsEqual(cookieValue)
|
||||
|
||||
// Test remove a Cookie.
|
||||
t3 := e.GET(fmt.Sprintf("/cookies/remove/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
@@ -30,5 +30,5 @@ func TestSecureCookie(t *testing.T) {
|
||||
|
||||
t4 := e.GET(fmt.Sprintf("/cookies/%s", cookieName)).Expect().Status(httptest.StatusOK)
|
||||
t4.Cookies().Empty()
|
||||
t4.Body().Empty()
|
||||
t4.Body().IsEmpty()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user