修复部分测试用例

This commit is contained in:
GoEdgeLab
2023-06-07 21:49:42 +08:00
parent c782d92332
commit 58b7bbfbb5
14 changed files with 254 additions and 107 deletions

View File

@@ -899,7 +899,10 @@ func (this *FileStorage) Stop() {
memoryStorage.Stop()
})
_ = this.list.Reset()
if this.list != nil {
_ = this.list.Reset()
}
if this.purgeTicker != nil {
this.purgeTicker.Stop()
}
@@ -907,7 +910,9 @@ func (this *FileStorage) Stop() {
this.hotTicker.Stop()
}
_ = this.list.Close()
if this.list != nil {
_ = this.list.Close()
}
var openFileCache = this.openFileCache
if openFileCache != nil {