Skip to content

Commit

Permalink
test(upgrade): send test-cases config to each validator
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Nov 2, 2023
1 parent 50afc5e commit 1b43a45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func TestUpgrade(t *testing.T) {
validators := make(map[string]*validator)

for val, params := range validatorsParams {
validators[val] = newValidator(ctx, t, params)
validators[val] = newValidator(ctx, t, params, tConfig)
}

utester := &upgradeTest{
Expand Down Expand Up @@ -735,7 +735,7 @@ func (l *upgradeTest) submitUpgradeProposal() error {
return nil
}

func newValidator(ctx context.Context, t *testing.T, params validatorParams) *validator {
func newValidator(ctx context.Context, t *testing.T, params validatorParams, tConfig testCases) *validator {
ctx, cancel := context.WithCancel(ctx)
group, ctx := errgroup.WithContext(ctx)

Expand All @@ -746,6 +746,7 @@ func newValidator(ctx context.Context, t *testing.T, params validatorParams) *va
pubsub: pubsub.NewBus(),
group: group,
params: params,
tConfig: tConfig,
upgradeSuccessful: make(chan struct{}, 1),
testErrsCh: make(chan []string, 1),
}
Expand Down

0 comments on commit 1b43a45

Please sign in to comment.