Skip to content

Commit 7df69d9

Browse files
committed
Add missing dirtiesContext in @CCMConfig of test
Add missing "dirtiesContext = true" configuration in @CCMConfig of ControlConnectionTest.should_prevent_simultaneous_reconnection_attempts. The test stops cluster nodes: ccm().stop(1), so it requires "dirtiesContext = true". Even though the test class itself had this option correctly set, the test method overwrote this configuration. Depending on the order of tests, this could cause another test to fail, as all of the nodes of cluster were removed. Refs #170
1 parent c8f4ff4 commit 7df69d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/test/java/com/datastax/driver/core/ControlConnectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class ControlConnectionTest extends CCMTestsSupport {
6868
static final Logger logger = LoggerFactory.getLogger(ControlConnectionTest.class);
6969

7070
@Test(groups = "short")
71-
@CCMConfig(numberOfNodes = 2)
71+
@CCMConfig(numberOfNodes = 2, dirtiesContext = true)
7272
public void should_prevent_simultaneous_reconnection_attempts() throws InterruptedException {
7373

7474
// Custom load balancing policy that counts the number of calls to newQueryPlan().

0 commit comments

Comments
 (0)