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%2FAbstractShardTest.java;h=6f07390ba207afe5aad2b5b5c50aad8883123d57;hb=4f1f2ae598588f6aa5aac59b2206d97ad402a193;hp=44ffdeb97b8dde203fa4314f6709dbf2379b1d19;hpb=a7740542c8ce1985c0a35767966c781805dfad84;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardTest.java index 44ffdeb97b..6f07390ba2 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardTest.java @@ -324,8 +324,7 @@ public abstract class AbstractShardTest extends AbstractActorTest{ BatchedModifications batched = newBatchedModifications(nextTransactionId(), id, node, true, true, 1); DataTreeModification modification = store.getDataTree().takeSnapshot().newModification(); batched.apply(modification); - modification.ready(); - store.applyForeignCandidate(batched.getTransactionID(), store.getDataTree().prepare(modification)); + store.commit(modification); } public void mergeToStore(final ShardDataTree store, final YangInstanceIdentifier id, @@ -338,8 +337,7 @@ public abstract class AbstractShardTest extends AbstractActorTest{ DataTreeModification modification = store.getDataTree().takeSnapshot().newModification(); batched.apply(modification); - modification.ready(); - store.applyForeignCandidate(batched.getTransactionID(), store.getDataTree().prepare(modification)); + store.commit(modification); } public static void writeToStore(final DataTree store, final YangInstanceIdentifier id,