update unit test case of gmlock

This commit is contained in:
John 2019-01-18 15:14:05 +08:00
parent 616539ecb0
commit 5fed6f5681

View File

@ -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")
}()