Skip to content

Commit 2e01bcd

Browse files
committed
Partly revert "tests: adjust DCExecutionProfileTests constructor"
This partly reverts commit 6b44c2c. This is because now we support `used_hosts_per_remote_dc` correctly, which means we forbid DC failover in the case of `used_hosts_per_remote_dc = 0`. This makes the test fail, because it originally had that parameter set to 1. The reverted commit changed it to `0`, because `0` was the only accepted parameter at that time.
1 parent bce8045 commit 2e01bcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/integration/tests/test_exec_profile.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ class DCExecutionProfileTest : public ExecutionProfileTest {
193193
void SetUp() {
194194
// Create the execution profiles for the test cases
195195
profiles_["dc_aware"] = ExecutionProfile::build()
196-
.with_load_balance_dc_aware("dc1", 0, false)
196+
.with_load_balance_dc_aware("dc1", 1, false)
197197
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
198198
profiles_["blacklist_dc"] = ExecutionProfile::build()
199199
.with_blacklist_dc_filtering("dc1")
200-
.with_load_balance_dc_aware("dc1", 0, false)
200+
.with_load_balance_dc_aware("dc1", 1, false)
201201
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
202202
profiles_["whitelist_dc"] = ExecutionProfile::build()
203203
.with_whitelist_dc_filtering("dc2")
204-
.with_load_balance_dc_aware("dc1", 0, false)
204+
.with_load_balance_dc_aware("dc1", 1, false)
205205
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
206206

207207
// Call the parent setup function

0 commit comments

Comments
 (0)