add extra sessopts and any additional opts
This commit is contained in:
parent
59aa49d2e9
commit
99e26546d7
4 changed files with 23 additions and 6 deletions
|
@ -287,7 +287,12 @@ func TestRunAll(t *testing.T) {
|
|||
var err error
|
||||
jar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
|
||||
testclient.Jar = jar
|
||||
if sm, err = session.NewManager(pn, sid, lifet, true); err != nil {
|
||||
sessopts := session.SessOpts{
|
||||
ProviderName: "memory", CookieName: sid,
|
||||
MaxLifetime: 180, Ssl: true,
|
||||
}
|
||||
|
||||
if sm, err = session.NewManager(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