Skip to content

Commit

Permalink
deployment/ccip/changeset/v1_6: more parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Feb 26, 2025
1 parent 4806242 commit 6aa4cb4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployment/ccip/changeset/v1_6/cs_active_candidate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
)

func Test_ActiveCandidate(t *testing.T) {
t.Parallel()
// Setup an environment with 2 chains, a source and a dest.
// We want to have the active instance execute a few messages
// and then setup a candidate instance. The candidate instance
Expand Down
5 changes: 5 additions & 0 deletions deployment/ccip/changeset/v1_6/cs_ccip_home_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
)

func TestInvalidOCR3Params(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t,
testhelpers.WithPrerequisiteDeploymentOnly(nil))
chain1 := e.Env.AllChainSelectors()[0]
Expand Down Expand Up @@ -97,6 +98,7 @@ func TestInvalidOCR3Params(t *testing.T) {
}

func Test_PromoteCandidate(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -195,6 +197,7 @@ func Test_PromoteCandidate(t *testing.T) {
}

func Test_SetCandidate(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -367,6 +370,7 @@ func Test_SetCandidate(t *testing.T) {
}

func Test_RevokeCandidate(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -558,6 +562,7 @@ func transferToTimelock(
}

func Test_UpdateChainConfigs(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down
15 changes: 15 additions & 0 deletions deployment/ccip/changeset/v1_6/cs_chain_contracts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
)

func TestUpdateOnRampsDests(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -109,6 +110,7 @@ func TestUpdateOnRampsDests(t *testing.T) {
}

func TestUpdateOnRampDynamicConfig(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -177,6 +179,7 @@ func TestUpdateOnRampDynamicConfig(t *testing.T) {
}

func TestUpdateOnRampAllowList(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -253,6 +256,7 @@ func TestUpdateOnRampAllowList(t *testing.T) {
}

func TestWithdrawOnRampFeeTokens(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -369,6 +373,7 @@ func TestWithdrawOnRampFeeTokens(t *testing.T) {
}

func TestUpdateOffRampsSources(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -445,6 +450,7 @@ func TestUpdateOffRampsSources(t *testing.T) {
}

func TestUpdateFQDests(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -513,6 +519,7 @@ func TestUpdateFQDests(t *testing.T) {
}

func TestUpdateRouterRamps(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -590,6 +597,7 @@ func TestUpdateRouterRamps(t *testing.T) {
}

func TestUpdateDynamicConfigOffRampChangeset(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -650,6 +658,7 @@ func TestUpdateDynamicConfigOffRampChangeset(t *testing.T) {
}

func TestUpdateNonceManagersCS(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -708,6 +717,7 @@ func TestUpdateNonceManagersCS(t *testing.T) {
}

func TestUpdateNonceManagersCSApplyPreviousRampsUpdates(t *testing.T) {
t.Parallel()
e, tenv := testhelpers.NewMemoryEnvironment(
t,
testhelpers.WithPrerequisiteDeploymentOnly(&changeset.V1_5DeploymentConfig{
Expand Down Expand Up @@ -803,6 +813,7 @@ func TestUpdateNonceManagersCSApplyPreviousRampsUpdates(t *testing.T) {
}

func TestSetOCR3ConfigValidations(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(
t,
testhelpers.WithPrerequisiteDeploymentOnly(nil))
Expand Down Expand Up @@ -909,6 +920,7 @@ func TestSetOCR3ConfigValidations(t *testing.T) {
}

func TestApplyFeeTokensUpdatesFeeQuoterChangeset(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -994,6 +1006,7 @@ func TestApplyFeeTokensUpdatesFeeQuoterChangeset(t *testing.T) {
}

func TestApplyPremiumMultiplierWeiPerEthUpdatesFeeQuoterChangeset(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -1106,6 +1119,7 @@ func TestApplyPremiumMultiplierWeiPerEthUpdatesFeeQuoterChangeset(t *testing.T)
}

func TestUpdateTokenPriceFeedsFeeQuoterChangeset(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down Expand Up @@ -1223,6 +1237,7 @@ func TestUpdateTokenPriceFeedsFeeQuoterChangeset(t *testing.T) {
}

func TestApplyTokenTransferFeeConfigUpdatesFeeQuoterChangeset(t *testing.T) {
t.Parallel()
for _, tc := range []struct {
name string
mcmsEnabled bool
Expand Down
4 changes: 4 additions & 0 deletions deployment/ccip/changeset/v1_6/cs_home_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func TestDeployHomeChain(t *testing.T) {
}

func TestDeployHomeChainIdempotent(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t)
nodes, err := deployment.NodeInfo(e.Env.NodeIDs, e.Env.Offchain)
require.NoError(t, err)
Expand All @@ -89,6 +90,7 @@ func TestDeployHomeChainIdempotent(t *testing.T) {
}

func TestRemoveDonsValidate(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t)
s, err := changeset.LoadOnchainState(e.Env)
require.NoError(t, err)
Expand Down Expand Up @@ -144,6 +146,7 @@ func TestRemoveDonsValidate(t *testing.T) {
}

func TestRemoveDons(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t)
s, err := changeset.LoadOnchainState(e.Env)
require.NoError(t, err)
Expand Down Expand Up @@ -201,6 +204,7 @@ func TestRemoveDons(t *testing.T) {
}

func TestAddDonAfterRemoveDons(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t)
s, err := changeset.LoadOnchainState(e.Env)
require.NoError(t, err)
Expand Down
1 change: 1 addition & 0 deletions deployment/ccip/changeset/v1_6/cs_jobspec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestJobSpecChangeset(t *testing.T) {
}

func TestJobSpecChangesetIdempotent(t *testing.T) {
t.Parallel()
e, _ := testhelpers.NewMemoryEnvironment(t)
// we call the changeset again to ensure that it doesn't return any new job specs
// as the job specs are already created in the first call
Expand Down

0 comments on commit 6aa4cb4

Please sign in to comment.