remove duplicate
Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/7a97315d Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/7a97315d Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/7a97315d Branch: refs/heads/CURATOR-175 Commit: 7a97315dd264a61cb3ea8c02b484cf744e39298c Parents: f2f03ce Author: randgalt <[email protected]> Authored: Mon Jan 12 15:30:43 2015 -0500 Committer: randgalt <[email protected]> Committed: Mon Jan 12 15:30:43 2015 -0500 ---------------------------------------------------------------------- .../x/discovery/TestServiceDiscovery.java | 34 -------------------- 1 file changed, 34 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/7a97315d/curator-x-discovery/src/test/java/org/apache/curator/x/discovery/TestServiceDiscovery.java ---------------------------------------------------------------------- diff --git a/curator-x-discovery/src/test/java/org/apache/curator/x/discovery/TestServiceDiscovery.java b/curator-x-discovery/src/test/java/org/apache/curator/x/discovery/TestServiceDiscovery.java index 4a586b4..6eb9ebb 100644 --- a/curator-x-discovery/src/test/java/org/apache/curator/x/discovery/TestServiceDiscovery.java +++ b/curator-x-discovery/src/test/java/org/apache/curator/x/discovery/TestServiceDiscovery.java @@ -297,38 +297,4 @@ public class TestServiceDiscovery extends BaseClassForTests } } } - - @Test - public void testNoServerOnStart() throws Exception - { - server.stop(); - List<Closeable> closeables = Lists.newArrayList(); - try - { - CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), new RetryOneTime(1)); - closeables.add(client); - client.start(); - - ServiceInstance<String> instance = ServiceInstance.<String>builder().payload("thing").name("test").port(10064).build(); - ServiceDiscovery<String> discovery = ServiceDiscoveryBuilder.builder(String.class).basePath("/test").client(client).thisInstance(instance).build(); - closeables.add(discovery); - discovery.start(); - - server.restart(); - Assert.assertEquals(discovery.queryForNames(), Arrays.asList("test")); - - List<ServiceInstance<String>> list = Lists.newArrayList(); - list.add(instance); - Assert.assertEquals(discovery.queryForInstances("test"), list); - } - finally - { - Collections.reverse(closeables); - for ( Closeable c : closeables ) - { - CloseableUtils.closeQuietly(c); - } - } - } - }
