This commit is contained in:
DarkGopher 2025-06-13 16:19:50 +02:00
parent b751fc5eb4
commit 61af9f0c8b
5 changed files with 118 additions and 65 deletions

View file

@ -287,6 +287,7 @@ func TestRunAll(t *testing.T) {
var err error
jar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
testclient.Jar = jar
sessopts := &session.SessOpts{
CookieName: sid,
MaxLifetime: 180, Ssl: true,
@ -295,9 +296,10 @@ func TestRunAll(t *testing.T) {
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}
for idx, fn := range fns {
t.Run(fmt.Sprintf("Test%d", idx+1), fn)
t.Run(fmt.Sprintf("Test-%d-prv-%s", idx+1, pn), fn)
}
}
}