add additional opts for session manager
This commit is contained in:
parent
99e26546d7
commit
b751fc5eb4
2 changed files with 27 additions and 28 deletions
|
@ -287,12 +287,12 @@ func TestRunAll(t *testing.T) {
|
|||
var err error
|
||||
jar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
|
||||
testclient.Jar = jar
|
||||
sessopts := session.SessOpts{
|
||||
ProviderName: "memory", CookieName: sid,
|
||||
sessopts := &session.SessOpts{
|
||||
CookieName: sid,
|
||||
MaxLifetime: 180, Ssl: true,
|
||||
}
|
||||
|
||||
if sm, err = session.NewManager(sessopts, nil); err != nil {
|
||||
if sm, err = session.NewManager(pn, sessopts, nil); err != nil {
|
||||
t.Errorf("Session provider %s failed initialize err: %v", pn, err)
|
||||
}
|
||||
fns := []func(t *testing.T){t1, t2, t3, t4, t5, t6, t7, t8, t9}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue