Skip to content

Commit

Permalink
Add new output to expect test.
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Sep 26, 2023
1 parent 1d6ad73 commit ad480a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e-go/cli/goal/expect/goalExpectCommon.exp
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ proc ::AlgorandGoal::StartCatchup { NODE_DATA_DIR CATCHPOINT } {
spawn goal node catchup $CATCHPOINT -d $NODE_DATA_DIR
expect {
timeout { ::AlgorandGoal::Abort "goal node catchup timed out" }
-re {Fast catchup response: ([0-9]*#[A-Z2-7]*)} {regexp -- {[0-9]*#[A-Z2-7]*} $expect_out(0,string) CATCHPOINT; exp_continue }
eof { catch wait result; if { [lindex $result 3] != 0 } { ::AlgorandGoal::Abort "failed to start catching up : error code [lindex $result 3]"} }
}
} EXCEPTION ] } {
Expand Down

0 comments on commit ad480a8

Please sign in to comment.