Upgrade Ginkgo to V2

This commit is contained in:
Deluan
2022-07-26 16:47:16 -04:00
parent 0d8eaa2878
commit 31882abf6f
98 changed files with 190 additions and 190 deletions
+5 -4
View File
@@ -10,7 +10,7 @@ import (
"github.com/navidrome/navidrome/core/auth"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/model"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
@@ -25,10 +25,11 @@ const (
oneDay = 24 * time.Hour
)
var _ = BeforeSuite(func() {
conf.Server.SessionTimeout = 2 * oneDay
})
var _ = Describe("Auth", func() {
BeforeSuite(func() {
conf.Server.SessionTimeout = 2 * oneDay
})
BeforeEach(func() {
auth.Secret = []byte(testJWTSecret)