Synchronize all access to _sync_counter, _passedAync

Change-Id: I34e9b3fb9481af30ddda8cde45ccbb27819fc452
This commit is contained in:
Stephan Bergmann 2016-03-11 11:49:35 +01:00
parent 86ce77b925
commit feb480d780

View File

@ -79,7 +79,7 @@ class TestWorkAt implements TestIWorkAt {
_notified = true;
}
public boolean passedAsyncTest() {
public synchronized boolean passedAsyncTest() {
assertEquals(MESSAGES, _sync_counter);
assertTrue(_passedAync);
return _passedAync && (_sync_counter == MESSAGES);