mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-23 06:51:55 +08:00
优化测试用例
This commit is contained in:
@@ -28,7 +28,9 @@ func TestNewCache(t *testing.T) {
|
||||
}
|
||||
}
|
||||
t.Log("a:", cache.Read("a"))
|
||||
time.Sleep(5 * time.Second)
|
||||
if testutils.IsSingleTesting() {
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
|
||||
for i := 0; i < len(cache.pieces); i++ {
|
||||
cache.GC()
|
||||
|
||||
Reference in New Issue
Block a user