commit | fc1bf3406b87365f9c193d87e4c683b1bbbaafb8 | [log] [tgz] |
---|---|---|
author | Jihwan Kim <jhanwimic@hotmail.com> | Sat Nov 12 00:37:07 2016 +0900 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Nov 11 17:54:49 2016 +0000 |
tree | 79937f1703455112be8fafd1f620f9d9968f0ad2 | |
parent | a4e34f8ff70b7f389d4ae67b543ad3fcf97ee225 [diff] |
[ONOS-5560] IntentCleanupTestMock::corruptPoll fails very rarely due to race Change-Id: I24fa09b2c6cfd2a9f95fd8fccc168bcc25b01c78
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentCleanupTestMock.java b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentCleanupTestMock.java index 9d29729..d5d2af0 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/IntentCleanupTestMock.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/IntentCleanupTestMock.java
@@ -116,7 +116,9 @@ expectLastCall().once(); replay(service); - cleanup.run(); //FIXME broken? + synchronized (service) { + cleanup.run(); //FIXME broken? + } verify(service); reset(service); }