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%2FAbstractTransactionProxyTest.java;h=3ee49b6f941ae5bd43bdf394480d72373ef0daa5;hb=9905bf0575ff196a531eb114e89b1bdb7226bc6c;hp=23ed5d6b716cd72a6c76b472543a1e11a463f141;hpb=466078ab1dc8a8cc2981b161051f6edecd6af85a;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionProxyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionProxyTest.java index 23ed5d6b71..3ee49b6f94 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionProxyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionProxyTest.java @@ -85,7 +85,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import scala.concurrent.Await; import scala.concurrent.Future; -import scala.concurrent.duration.Duration; +import scala.concurrent.duration.FiniteDuration; /** * Abstract base class for TransactionProxy unit tests. @@ -458,7 +458,7 @@ public abstract class AbstractTransactionProxyTest extends AbstractTest { for (Future future : proxy.getCohortFutures()) { assertNotNull("Ready operation Future is null", future); try { - futureResults.add(Await.result(future, Duration.create(5, TimeUnit.SECONDS))); + futureResults.add(Await.result(future, FiniteDuration.create(5, TimeUnit.SECONDS))); } catch (Exception e) { futureResults.add(e); }