延长读写线程超时时间/增加相关测试用例

This commit is contained in:
GoEdgeLab
2024-04-30 17:24:08 +08:00
parent 6d4269defb
commit 06a8ec5dec
3 changed files with 50 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ func (this *Limiter) Ack() {
}
func (this *Limiter) TryAck() bool {
const timeoutDuration = 500 * time.Millisecond
const timeoutDuration = 1 * time.Second
var timeout *time.Timer
select {