commit | 7f41225a86c9faa3530f50944dc9ca4aee7af202 | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@ciena.com> | Wed Feb 22 17:15:19 2017 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Thu Feb 23 01:26:55 2017 +0000 |
tree | 3bec0647987333247e19ba0eaee117ca4b98c977 | |
parent | 0540087e1db0b584d474b6e70b539d45fac4633c [diff] |
Increase test cli timeout Set the timeout to the default DistributedPrimitive Timeout Change-Id: Ia7524032c3b6941e07b5ad0dc143538ab12f40dc
diff --git a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/WorkQueueTestCommand.java b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/WorkQueueTestCommand.java index bedc758..b23de26 100644 --- a/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/WorkQueueTestCommand.java +++ b/apps/test/distributed-primitives/src/main/java/org/onosproject/distributedprimitives/cli/WorkQueueTestCommand.java
@@ -24,6 +24,7 @@ import org.apache.karaf.shell.commands.Command; import org.onosproject.cli.AbstractShellCommand; import org.onosproject.store.serializers.KryoNamespaces; +import org.onosproject.store.service.DistributedPrimitive; import org.onosproject.store.service.Serializer; import org.onosproject.store.service.StorageService; import org.onosproject.store.service.Task; @@ -105,7 +106,7 @@ private <T> T get(CompletableFuture<T> future) { try { - return future.get(1, TimeUnit.SECONDS); + return future.get(DistributedPrimitive.DEFAULT_OPERTATION_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); } catch (Exception e) { throw Throwables.propagate(e); }