Skip to content

Commit 6b44c2c

Browse files
committed
tests: adjust DCExecutionProfileTests constructor
Last two parameters of `cass_execution_profile_set_load_balance_dc_aware` are deprecated and driver expects them to be 0-initialized - the error is returned otherwise. We will enable two tests from this suite in the next commit. Note: These parameters do not impact any assumptions we have in the tests.
1 parent 4404e93 commit 6b44c2c

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
@@ -196,15 +196,15 @@ class DCExecutionProfileTest : public ExecutionProfileTest {
196196
void SetUp() {
197197
// Create the execution profiles for the test cases
198198
profiles_["dc_aware"] = ExecutionProfile::build()
199-
.with_load_balance_dc_aware("dc1", 1, false)
199+
.with_load_balance_dc_aware("dc1", 0, false)
200200
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
201201
profiles_["blacklist_dc"] = ExecutionProfile::build()
202202
.with_blacklist_dc_filtering("dc1")
203-
.with_load_balance_dc_aware("dc1", 1, true)
203+
.with_load_balance_dc_aware("dc1", 0, false)
204204
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
205205
profiles_["whitelist_dc"] = ExecutionProfile::build()
206206
.with_whitelist_dc_filtering("dc2")
207-
.with_load_balance_dc_aware("dc1", 1, true)
207+
.with_load_balance_dc_aware("dc1", 0, false)
208208
.with_consistency(CASS_CONSISTENCY_LOCAL_ONE);
209209

210210
// Call the parent setup function

0 commit comments

Comments
 (0)