1
0
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:
Darien Raymond 2018-05-27 15:06:17 +02:00
parent ac6a0f7511
commit 0e27fac290
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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