android_packages_modules_Co.../tests/net/java
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hugo Benichi 986eaa7b76 Fix race condition in NsdManagerTest
NsdManagerTest relies on the lastMessage variable to assert the
connection of a client to the service. The asserts in test are done on a
different thread, although the variable was not qualified volatile,
which creates the chance to read a stale value. This patch fixes this
race by marking the variable volatile.

Bug: 32561414
Bug: 62044295
Test: NsdManagerTest works
Change-Id: I0bc2cd8059c6ff8b78a2dda0ba8d6bc7e13ef951
2017-05-31 15:35:54 +09:00
..
android/net Fix race condition in NsdManagerTest 2017-05-31 15:35:54 +09:00
com/android ConnectivityServiceTest: more tweaks to testRequestBenchmark 2017-05-31 10:23:42 +09:00