format code

This commit is contained in:
Anton Lindström 2014-06-09 16:54:10 +00:00
parent 568eb0c1c5
commit 3ead5a545f
1 changed files with 2 additions and 6 deletions

View File

@ -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) {
}
}