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

This commit is contained in:
刘祥超
2024-04-30 17:24:08 +08:00
parent e8538d4e34
commit 33156fed2a
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 {