Bug 4105: Choose Owner for an Entity based on first come first served basis
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / entityownership / DistributedEntityOwnershipServiceTest.java
index 3e9a51ede9d4d6c8508e8aab0802b78d414c8557..7e789ae2613e9c7ee0b1bc8d4fc7d26a2fb287a9 100644 (file)
@@ -213,6 +213,7 @@ public class DistributedEntityOwnershipServiceTest extends AbstractEntityOwnersh
     }
 
     private NormalizedNode<?, ?> readEntityOwners(ActorRef shard) throws Exception {
+        Uninterruptibles.sleepUninterruptibly(500, TimeUnit.MILLISECONDS);
         Stopwatch sw = Stopwatch.createStarted();
         while(sw.elapsed(TimeUnit.MILLISECONDS) <= 5000) {
             DOMStoreReadTransaction readTx = dataStore.newReadOnlyTransaction();