mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 19:27:46 +08:00
update unit test case of gmlock
This commit is contained in:
parent
616539ecb0
commit
5fed6f5681
@ -50,8 +50,9 @@ func TestLocker_Lock_Expire(t *testing.T) {
|
||||
array.Append(1)
|
||||
}()
|
||||
go func() {
|
||||
time.Sleep(10*time.Millisecond)
|
||||
gmlock.Lock("test")
|
||||
time.Sleep(50*time.Millisecond)
|
||||
time.Sleep(100*time.Millisecond)
|
||||
array.Append(1)
|
||||
gmlock.Unlock("test")
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user