aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@vespa.ai>2024-06-25 09:04:07 +0000
committerTor Brede Vekterli <vekterli@vespa.ai>2024-06-25 09:04:07 +0000
commitf41bc05ae5a209ed35e0f981d1b1302c003455f9 (patch)
treed93d75d3850fcb647d9172a7b76ef161b5b5ae78
parente7fdc8f5010e18cd5599a016156a5c202df0f8db (diff)
Adjust cluster state node count to avoid false negatives in test
Cluster state should state N nodes and distribution config should state <N nodes in order to properly check that attempting to use node N fails due to the _config_ and not the _state_.
-rw-r--r--storage/src/tests/storageserver/changedbucketownershiphandlertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/storageserver/changedbucketownershiphandlertest.cpp b/storage/src/tests/storageserver/changedbucketownershiphandlertest.cpp
index 66fda885df7..6993882f479 100644
--- a/storage/src/tests/storageserver/changedbucketownershiphandlertest.cpp
+++ b/storage/src/tests/storageserver/changedbucketownershiphandlertest.cpp
@@ -380,7 +380,7 @@ TEST_F(ChangedBucketOwnershipHandlerTest, distribution_config_via_state_bundle_c
}
TEST_F(ChangedBucketOwnershipHandlerTest, ignore_internal_config_once_state_bundle_with_config_received) {
- apply_cluster_state_bundle(make_state_bundle_with_config("version:2 distributor:1 storage:3", 1));
+ apply_cluster_state_bundle(make_state_bundle_with_config("version:2 distributor:3 storage:3", 1));
applyDistribution(Redundancy(1), NodeCount(3));
// Bundle config says 1 node, internal config says 3. Trust the bundle(tm).
sendAndExpectAbortedCreateBucket(2);