Skip to content

Commit f6f45b6

Browse files
committed
revert cluster internal ratio in finalize_test
1 parent 8c5faad commit f6f45b6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/bootstrap/cmd/finalize_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,9 @@ func TestClusterAssignment(t *testing.T) {
120120
tmp := flagCollectionClusters
121121
flagCollectionClusters = 5
122122
// Happy path (limit set-up, can't have one less internal node)
123-
partnersLen := 12
124-
internalLen := 10
125-
// clusters are assigned (partner:internal) as [3:2, 3:2, 2:2, 2:2, 2:2],
126-
// with internal proportion being [40%, 40%, 50%, 50%, 50%]
127-
// removing an internal node would lead to a 2:1 ratio (33% internal) in the last cluster
123+
partnersLen := 7
124+
internalLen := 22
125+
// clusters are assigned with ratios (partner:internal) [2:5, 2:5, 1:4, 1:4, 1:4]
128126
partners := unittest.NodeInfosFixture(partnersLen, unittest.WithRole(flow.RoleCollection))
129127
internals := unittest.NodeInfosFixture(internalLen, unittest.WithRole(flow.RoleCollection))
130128

0 commit comments

Comments
 (0)