mirror of https://github.com/v2ray/v2ray-core
fix race condition
parent
ac6a0f7511
commit
0e27fac290
|
@ -72,5 +72,5 @@ func TestSameDestinationDispatching(t *testing.T) {
|
|||
cancel()
|
||||
|
||||
assert(count, Equals, uint32(1))
|
||||
assert(msgCount, Equals, uint32(6))
|
||||
assert(atomic.LoadUint32(&msgCount), Equals, uint32(6))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue