X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FThreePhaseCommitCohortProxyTest.java;h=8ff785c8797eecb166c0381ab3e7a92980fa8396;hb=44c747db358bf0d49434d5f818121286b5928d4a;hp=af3da575714c57d3b39786313a089d63d6419615;hpb=a2b92b2d72c28b9913131c0340f87d2424f44108;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxyTest.java index af3da57571..8ff785c879 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxyTest.java @@ -14,6 +14,8 @@ import org.opendaylight.controller.cluster.datastore.utils.MessageCollectorActor import org.opendaylight.controller.cluster.datastore.utils.MockActorContext; import java.util.Arrays; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; import static org.junit.Assert.assertNotNull; @@ -23,6 +25,7 @@ public class ThreePhaseCommitCohortProxyTest extends AbstractActorTest { private Props props; private ActorRef actorRef; private MockActorContext actorContext; + private ExecutorService executor = Executors.newSingleThreadExecutor(); @Before public void setUp(){ @@ -32,7 +35,7 @@ public class ThreePhaseCommitCohortProxyTest extends AbstractActorTest { proxy = new ThreePhaseCommitCohortProxy(actorContext, - Arrays.asList(actorRef.path())); + Arrays.asList(actorRef.path()), "txn-1", executor); }