mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 01:17:30 -05:00
fix race condition
This commit is contained in:
parent
ac6a0f7511
commit
0e27fac290
@ -72,5 +72,5 @@ func TestSameDestinationDispatching(t *testing.T) {
|
|||||||
cancel()
|
cancel()
|
||||||
|
|
||||||
assert(count, Equals, uint32(1))
|
assert(count, Equals, uint32(1))
|
||||||
assert(msgCount, Equals, uint32(6))
|
assert(atomic.LoadUint32(&msgCount), Equals, uint32(6))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user