优化代码

This commit is contained in:
刘祥超
2023-10-03 21:38:45 +08:00
parent 1eca5099df
commit 5c5adf690f
6 changed files with 46 additions and 41 deletions

View File

@@ -42,5 +42,7 @@ func TestNewOpenFileCache_CloseAll(t *testing.T) {
cache.Get("d.txt")
cache.CloseAll()
time.Sleep(6 * time.Second)
if testutils.IsSingleTesting() {
time.Sleep(6 * time.Second)
}
}