mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
修复WAF IP名单测试用例的一个可能异常
This commit is contained in:
@@ -38,8 +38,10 @@ func TestIPList_Expire(t *testing.T) {
|
||||
var ticker = time.NewTicker(1 * time.Second)
|
||||
for range ticker.C {
|
||||
t.Log("====")
|
||||
list.locker.Lock()
|
||||
logs.PrintAsJSON(list.ipMap, t)
|
||||
logs.PrintAsJSON(list.idMap, t)
|
||||
list.locker.Unlock()
|
||||
if len(list.idMap) == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user