Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Session test remove unneeded cookie header set
Browse files Browse the repository at this point in the history
  • Loading branch information
saurori committed Dec 18, 2021
1 parent 9d156f5 commit 1fed109
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ func Test_Session_CustomValue(t *testing.T) {
})

w := httptest.New(a)
_ = w.HTML("/").Get()

resSetSession := w.HTML("/").Get()

// Create second request and set the cookie from the first response
// Create second request that should contain the cookie from the first response
reqGetSession := w.HTML("/session")
reqGetSession.Headers["Set-Cookie"] = resSetSession.Header().Values("Set-Cookie")[0]
resGetSession := reqGetSession.Get()

r.Equal(resGetSession.Body.String(), "test")
Expand Down

0 comments on commit 1fed109

Please sign in to comment.