mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Feat: cache in-memory store
This commit is contained in:
1 parent
5d50e7ed1e
commit
7375cc01f1
8 files changed
+134
-26
No files matched your search
@@ -1,16 +1,17 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jinzhu/gorm"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMigration(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
gin.SetMode(gin.TestMode)
|
||||
DB, _ = gorm.Open("sqlite3", ":memory:")
|
||||
|
||||
asserts.NotPanics(func() {
|
||||
migration()
|
||||
})
|
||||
DB = mockDB
|
||||
}
|
||||
Reference in new issue
Block a user