1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 08:50:39 +00:00
This commit is contained in:
astaxie
2016-01-17 23:48:17 +08:00
parent 9b2597be68
commit 90d1349665
9 changed files with 11 additions and 11 deletions

View File

@ -80,7 +80,7 @@ func TestDestorySessionCookie(t *testing.T) {
t.Fatal("get cookie session id is not the same again.")
}
// After destory session , will get a new session id .
// After destroy session , will get a new session id .
globalSessions.SessionDestroy(w, r1)
r2, _ := http.NewRequest("GET", "/", nil)
r2.Header.Set("Cookie", w.Header().Get("Set-Cookie"))
@ -91,6 +91,6 @@ func TestDestorySessionCookie(t *testing.T) {
t.Fatal("session start error")
}
if newSession.SessionID() == session.SessionID() {
t.Fatal("after destory session and reqeust again ,get cookie session id is same.")
t.Fatal("after destroy session and reqeust again ,get cookie session id is same.")
}
}