X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FBasicIntegrationTest.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FBasicIntegrationTest.java;h=dfefc5ed579b36163f882485f38f577b53832b8e;hp=74c858e4a6b329ccb6536ddd7f4a1d42bec2885e;hb=996ab3e41386da6b27cf21f6464ef1e55363e1ca;hpb=c2b14095fb5dbef1532dde5a1b40bd3b9111d019 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/BasicIntegrationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/BasicIntegrationTest.java index 74c858e4a6..dfefc5ed57 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/BasicIntegrationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/BasicIntegrationTest.java @@ -77,7 +77,7 @@ public class BasicIntegrationTest extends AbstractActorTest { Assert.assertNotNull(transactionChain); - transactionChain.tell(new CreateTransaction(), getRef()); + transactionChain.tell(new CreateTransaction("txn-1"), getRef()); final ActorSelection transaction = new ExpectMsg("CreateTransactionReply") { @@ -152,6 +152,10 @@ public class BasicIntegrationTest extends AbstractActorTest { Assert.assertTrue(preCommitDone); + // FIXME : When we commit on the cohort it "kills" the Transaction. + // This in turn kills the child of Transaction as well. + // The order in which we receive the terminated event for both + // these actors is not fixed which may cause this test to fail cohort.tell(new CommitTransaction(), getRef()); final Boolean terminatedCohort =