Skip to content

Commit 048ad0c

Browse files
committed
fix expect tests
1 parent 27ca644 commit 048ad0c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

test/e2e-go/cli/goal/expect/catchpointCatchupTest.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if { [catch {
6464
::AlgorandGoal::CreateNetwork $NETWORK_NAME $NETWORK_TEMPLATE $TEST_ALGO_DIR $TEST_ROOT_DIR
6565

6666
# Update the Primary Node configuration
67-
exec -- cat "$TEST_ROOT_DIR/Primary/config.json" | jq {. |= . + {"MaxAcctLookback": 2, "CatchpointInterval": 4,"EnableRequestLogger":true,"Archival":true}} > $TEST_ROOT_DIR/Primary/config.json.new
67+
exec -- cat "$TEST_ROOT_DIR/Primary/config.json" | jq {. |= . + {"MaxAcctLookback": 2, "CatchpointInterval": 4,"EnableRequestLogger":true,"Archival":true,"PublicAddress":"abc","P2PHybridNetAddress":":4190"}} > $TEST_ROOT_DIR/Primary/config.json.new
6868
exec rm $TEST_ROOT_DIR/Primary/config.json
6969
exec mv $TEST_ROOT_DIR/Primary/config.json.new $TEST_ROOT_DIR/Primary/config.json
7070

test/e2e-go/cli/goal/expect/goalExpectCommon.exp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ proc ::AlgorandGoal::CreateNetwork { NETWORK_NAME NETWORK_TEMPLATE TEST_ALGO_DIR
269269
puts "ERROR in CreateNetwork: $EXCEPTION"
270270
exit 1
271271
}
272+
273+
# Update the Primary Node configuration for TwoNodes50Each/ThreeNodesEvenDist templates in order to satisfy hybrid mode defaults
274+
set RELAY_NAME ""
275+
if {[string match "*TwoNodes50Each*" $NETWORK_TEMPLATE] || [string match "*ThreeNodesEvenDist*" $NETWORK_TEMPLATE]} {
276+
exec -- cat "$TEST_ROOT_DIR/Primary/config.json" | jq {. |= . + {"PublicAddress": "abc", "P2PHybridNetAddress": ":4190"}} > $TEST_ROOT_DIR/Primary/config.json.new
277+
exec rm $TEST_ROOT_DIR/Primary/config.json
278+
exec mv $TEST_ROOT_DIR/Primary/config.json.new $TEST_ROOT_DIR/Primary/config.json
279+
}
272280
}
273281

274282
# Start the network

0 commit comments

Comments
 (0)