mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
test(thumb): new changes in models/cache pkg
This commit is contained in:
14
pkg/cache/driver_test.go
vendored
14
pkg/cache/driver_test.go
vendored
@@ -56,10 +56,14 @@ func TestInit(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
asserts.NotPanics(func() {
|
||||
Init(false)
|
||||
})
|
||||
|
||||
asserts.NotPanics(func() {
|
||||
Init(true)
|
||||
Init()
|
||||
})
|
||||
}
|
||||
|
||||
func TestInitSlaveOverwrites(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
asserts.NotPanics(func() {
|
||||
InitSlaveOverwrites()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user