X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fremote%2Frpc%2Fregistry%2Fgossip%2FGossiperTest.java;h=bb60ed6eec05c4151dce935d2fc198d82c98577f;hb=ac732369c7ddaaf60faef5eda22fa9c41aad391e;hp=d862dcb8cd5f96b5e81aea87a3da297b5164340e;hpb=c911a187bdcd6160c1929e53466cd9de681c2098;p=controller.git diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java index d862dcb8cd..bb60ed6eec 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java @@ -45,8 +45,7 @@ public class GossiperTest { @BeforeClass public static void setup() throws InterruptedException { - Thread.sleep(1000);//give some time for previous test to stop the system. Netty port conflict arises otherwise. - system = ActorSystem.create("opendaylight-rpc", ConfigFactory.load().getConfig("unit-test")); + system = ActorSystem.create("opendaylight-rpc", ConfigFactory.load().getConfig("odl-cluster")); system.actorOf(Props.create(TerminationMonitor.class), "termination-monitor"); gossiper = createGossiper(); @@ -115,17 +114,6 @@ public class GossiperTest { verify(mockGossiper, times(0)).updateRemoteBuckets(anyMap()); } - @Test - public void testUpdateRemoteBuckets_WhenNoBucketShouldIgnore(){ - - mockGossiper.updateRemoteBuckets(null); - verify(mockGossiper, times(0)).getContext(); - - Map empty = Collections.emptyMap(); - mockGossiper.updateRemoteBuckets(empty); - verify(mockGossiper, times(0)).getContext(); - } - /** * Create Gossiper actor and return the underlying instance of Gossiper class. *