File tree 1 file changed +6
-4
lines changed
deployment/environment/memory
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
"os"
7
7
"path"
8
8
"strconv"
9
+ "sync"
9
10
"testing"
10
11
"time"
11
12
@@ -139,12 +140,14 @@ func evmChain(t *testing.T, numUsers int) EVMChain {
139
140
}
140
141
}
141
142
143
+ var once = & sync.Once {}
144
+
142
145
func solChain (t * testing.T ) SolanaChain {
143
146
t .Helper ()
144
147
145
148
// initialize the docker network used by CTF
146
- // TODO: framework.DefaultNetwork(once) is broken for me, use a static name for now
147
- framework . DefaultNetworkName = "chainlink"
149
+ err := framework .DefaultNetwork (once )
150
+ require . NoError ( t , err )
148
151
149
152
deployerKey , err := solana .NewRandomPrivateKey ()
150
153
require .NoError (t , err )
@@ -160,8 +163,7 @@ func solChain(t *testing.T) SolanaChain {
160
163
port := freeport .GetOne (t )
161
164
162
165
bcInput := & blockchain.Input {
163
- Type : "solana" ,
164
- // TODO: randomize port
166
+ Type : "solana" ,
165
167
ChainID : chainselectors .SOLANA_DEVNET .ChainID ,
166
168
PublicKey : deployerKey .PublicKey ().String (),
167
169
Port : strconv .Itoa (port ),
You can’t perform that action at this time.
0 commit comments