mirror of
https://github.com/gofiber/storage.git
synced 2025-10-04 16:22:52 +08:00
🧹 introduce reset and close
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
var testStore = New(Config{
|
||||
Clear: true,
|
||||
Reset: true,
|
||||
})
|
||||
|
||||
func Test_MongoDB_Set(t *testing.T) {
|
||||
@@ -106,7 +106,7 @@ func Test_MongoDB_Clear(t *testing.T) {
|
||||
err = testStore.Set("john2", val, 0)
|
||||
utils.AssertEqual(t, nil, err)
|
||||
|
||||
err = testStore.Clear()
|
||||
err = testStore.Reset()
|
||||
utils.AssertEqual(t, nil, err)
|
||||
|
||||
result, err := testStore.Get("john1")
|
||||
|
Reference in New Issue
Block a user