Skip to content

Commit

Permalink
[Tests] testNodeVersionIsUpdated stopped but didn't close it's node
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Aug 24, 2014
1 parent 562fe1d commit e16a461
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
import org.junit.Test;

import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.startsWith;
import static org.hamcrest.Matchers.*;

@ClusterScope(scope = Scope.TEST, numDataNodes = 0, transportClientRatio = 1.0)
public class TransportClientTests extends ElasticsearchIntegrationTest {
Expand All @@ -54,6 +52,7 @@ public void testNodeVersionIsUpdated() {
TransportClientNodesService nodeService = client.nodeService();
Node node = NodeBuilder.nodeBuilder().data(false).settings(ImmutableSettings.builder()
.put(internalCluster().getDefaultSettings())
.put("node.name", "testNodeVersionIsUpdated")
.put("http.enabled", false)
.put("index.store.type", "ram")
.put("config.ignore_system_properties", true) // make sure we get what we set :)
Expand All @@ -78,7 +77,7 @@ public void testNodeVersionIsUpdated() {
assertThat(discoveryNode.getVersion(), equalTo(Version.CURRENT.minimumCompatibilityVersion()));
}
} finally {
node.stop();
node.close();
}
}
}

0 comments on commit e16a461

Please sign in to comment.