Skip to content

Commit

Permalink
fix(e2e): run the correct number of MR nodes
Browse files Browse the repository at this point in the history
This PR fixed the e2e test to run the correct number of MR nodes.
  • Loading branch information
ijsong committed Oct 10, 2023
1 parent ef29008 commit b1e8432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ee/cluster/local/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func (c *Cluster) Setup(_ context.Context, t *testing.T) {
var ctx context.Context
c.StartMetadataRepositoryNodes(ctx, t, 1)
c.StartAdminServer(ctx, t)
if remains := c.NumMetaRepos() - 1; remains > 0 {
c.StartMetadataRepositoryNodes(ctx, t, remains)
if desired := c.NumMetaRepos(); desired-1 > 0 {
c.StartMetadataRepositoryNodes(ctx, t, desired)
}
if desired := c.NumStorageNodes(); desired > 0 {
c.StartStorageNodes(ctx, t, desired)
Expand Down

0 comments on commit b1e8432

Please sign in to comment.