Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(upgrade): send test-cases config to each validator #1900

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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