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