Skip to content

Commit

Permalink
test(upgrade): send test-cases config to each validator (#1900)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Nov 2, 2023
1 parent 50afc5e commit a6b0cf1
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 a6b0cf1

Please sign in to comment.