Synchronize all access to _sync_counter, _passedAync
Change-Id: I34e9b3fb9481af30ddda8cde45ccbb27819fc452
This commit is contained in:
parent
86ce77b925
commit
feb480d780
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user