@@ -14,14 +14,15 @@ import (
14
14
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/testcontext"
15
15
"github.com/smartcontractkit/chainlink/deployment"
16
16
"github.com/smartcontractkit/chainlink/deployment/common/types"
17
+ "github.com/smartcontractkit/chainlink/deployment/data-streams/changeset/testutil"
17
18
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/llo-feeds/generated/configurator"
18
19
)
19
20
20
21
func TestCallPromoteStagingConfig (t * testing.T ) {
21
- e := newMemoryEnv ( t )
22
+ e := testutil . NewMemoryEnv ( t , true )
22
23
ctx := testcontext .Get (t )
23
24
24
- deployConf := DeployConfiguratorConfig {ChainsToDeploy : []uint64 {TestChain .Selector }}
25
+ deployConf := DeployConfiguratorConfig {ChainsToDeploy : []uint64 {testutil . TestChain .Selector }}
25
26
out , err := DeployConfigurator {}.Apply (e , deployConf )
26
27
require .NoError (t , err )
27
28
@@ -30,7 +31,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
30
31
require .Len (t , ab , 1 )
31
32
32
33
var configuratorAddr common.Address
33
- for addr , tv := range ab [TestChain .Selector ] {
34
+ for addr , tv := range ab [testutil . TestChain .Selector ] {
34
35
require .Equal (t , types .Configurator , tv .Type )
35
36
require .Equal (t , deployment .Version1_0_0 , tv .Version )
36
37
configuratorAddr = common .HexToAddress (addr )
@@ -59,7 +60,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
59
60
60
61
callProd := SetProductionConfigConfig {
61
62
ConfigurationsByChain : map [uint64 ][]SetProductionConfig {
62
- TestChain .Selector : {prodCfg },
63
+ testutil . TestChain .Selector : {prodCfg },
63
64
},
64
65
MCMSConfig : nil ,
65
66
}
@@ -76,7 +77,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
76
77
Addresses : []common.Address {configuratorAddr },
77
78
Topics : [][]common.Hash {{configAbi .Events ["ProductionConfigSet" ].ID }},
78
79
}
79
- prodLogs , err := e .Chains [TestChain .Selector ].Client .FilterLogs (ctx , prodFilterQuery )
80
+ prodLogs , err := e .Chains [testutil . TestChain .Selector ].Client .FilterLogs (ctx , prodFilterQuery )
80
81
require .NoError (t , err )
81
82
require .NotEmpty (t , prodLogs )
82
83
@@ -110,7 +111,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
110
111
111
112
callStaging := SetStagingConfigConfig {
112
113
ConfigurationsByChain : map [uint64 ][]SetStagingConfig {
113
- TestChain .Selector : {stagingCfg },
114
+ testutil . TestChain .Selector : {stagingCfg },
114
115
},
115
116
MCMSConfig : nil ,
116
117
}
@@ -120,7 +121,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
120
121
121
122
callPromote := PromoteStagingConfigConfig {
122
123
PromotionsByChain : map [uint64 ][]PromoteStagingConfig {
123
- TestChain .Selector : {
124
+ testutil . TestChain .Selector : {
124
125
{
125
126
ConfiguratorAddress : configuratorAddr ,
126
127
ConfigID : [32 ]byte {},
@@ -141,7 +142,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
141
142
Addresses : []common.Address {configuratorAddr },
142
143
Topics : [][]common.Hash {{configAbi .Events ["PromoteStagingConfig" ].ID }},
143
144
}
144
- promoLogs , err := e .Chains [TestChain .Selector ].Client .FilterLogs (ctx , promoFilterQuery )
145
+ promoLogs , err := e .Chains [testutil . TestChain .Selector ].Client .FilterLogs (ctx , promoFilterQuery )
145
146
require .NoError (t , err )
146
147
require .NotEmpty (t , promoLogs )
147
148
0 commit comments