mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
18 lines
260 B
Go
18 lines
260 B
Go
|
|
package accesslogs
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/iwind/TeaGo/dbs"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestStorageManager_Loop(t *testing.T) {
|
||
|
|
dbs.NotifyReady()
|
||
|
|
|
||
|
|
var storage = NewStorageManager()
|
||
|
|
err := storage.Loop()
|
||
|
|
if err != nil {
|
||
|
|
t.Fatal(err)
|
||
|
|
}
|
||
|
|
t.Log(storage.storageMap)
|
||
|
|
}
|