format code
This commit is contained in:
parent
568eb0c1c5
commit
3ead5a545f
|
@ -7,6 +7,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type headerOnlyResponseWriter http.Header
|
||||
|
||||
func (ho headerOnlyResponseWriter) Header() http.Header {
|
||||
|
@ -67,7 +68,6 @@ func TestPGStore(t *testing.T) {
|
|||
|
||||
req.AddCookie(sessions.NewCookie(session.Name(), encoded, session.Options))
|
||||
|
||||
|
||||
session, err = ss.Get(req, "mysess")
|
||||
if err != nil {
|
||||
t.Fatal("failed to get round 2 session", err.Error())
|
||||
|
@ -82,7 +82,6 @@ func TestPGStore(t *testing.T) {
|
|||
t.Fatal("Failed to save session:", err.Error())
|
||||
}
|
||||
|
||||
|
||||
// ROUND 2 - check that the cookie has been updated
|
||||
req, err = http.NewRequest("GET", "http://www.example.com", nil)
|
||||
if err != nil {
|
||||
|
@ -100,6 +99,3 @@ func TestPGStore(t *testing.T) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue