Skip to content

Commit

Permalink
Test helpers working using changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwstein committed Dec 17, 2024
1 parent 7942dfb commit 87a725f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/ccip/changeset/cs_ccip_home.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (a AddDonAndSetCandidateChangesetConfig) Validate(e deployment.Environment,
return fmt.Errorf("fetch don id for chain: %w", err)
}
if donID != 0 {
return fmt.Errorf("don already exists in CR for chain %d, it has id %d", a.DONChainSelector, donID)
return fmt.Errorf("don already exists in CR for chain %d, it has id %d", chainSelector, donID)
}
}

Expand Down
12 changes: 12 additions & 0 deletions deployment/ccip/changeset/test_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,18 @@ func NewEnvironmentWithJobsAndContracts(t *testing.T, tc *TestConfigs, tEnv Test
},
},
},
{
// Add the commit/exec OCR instances for the new chains.
Changeset: commonchangeset.WrapChangeSet(SetCandidateChangeset),
Config: SetCandidateChangesetConfig{
SetCandidateConfigBase{
HomeChainSelector: e.HomeChainSel,
FeedChainSelector: e.FeedChainSel,
DONChainSelector: ocrConfigs,
PluginType: types.PluginTypeCCIPExec,
},
},
},
{
// Promote everything
Changeset: commonchangeset.WrapChangeSet(PromoteAllCandidatesChangeset),
Expand Down

0 comments on commit 87a725f

Please sign in to comment.