summaryrefslogtreecommitdiff
path: root/test/e2e-go/cli/goal/expect/goalNodeTest.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e-go/cli/goal/expect/goalNodeTest.exp')
-rw-r--r--test/e2e-go/cli/goal/expect/goalNodeTest.exp25
1 files changed, 6 insertions, 19 deletions
diff --git a/test/e2e-go/cli/goal/expect/goalNodeTest.exp b/test/e2e-go/cli/goal/expect/goalNodeTest.exp
index d1af42d77..efab678f1 100644
--- a/test/e2e-go/cli/goal/expect/goalNodeTest.exp
+++ b/test/e2e-go/cli/goal/expect/goalNodeTest.exp
@@ -53,35 +53,22 @@ if { [catch {
# Stop node
::AlgorandGoal::StopNode $TEST_PRIMARY_NODE_DIR
- set WAIT_FOR_EOF 0
# Try stopping the node again, should fail
spawn goal node stop -d $TEST_PRIMARY_NODE_DIR
expect {
timeout { close; ::AlgorandGoal::Abort "Goal Node Stop did not fail as expected" }
- "^Cannot kill node: no running node in directory '*'" {puts "Node failed to stop, as expected"; set WAIT_FOR_EOF 1; exp_continue }
- eof {
- if {$WAIT_FOR_EOF == 0} {
- close;
- ::AlgorandGoal::Abort "Goal Node Stop did not fail as expected"
- }
- set WAIT_FOR_EOF 0
- }
+ "^Cannot kill node: no running node in directory '*'" {puts "Node failed successfully"; close}
+ eof { close; ::AlgorandGoal::Abort "Goal Node Stop did not fail as expected" }
}
- # Try stopping node in invalid directory, should fail
+ #Try stopping node in invalid directory, should fail
spawn goal node stop -d ''
expect {
timeout { close; ::AlgorandGoal::Abort "Goal Node Fail did not fail as expected" }
- "^Cannot kill node: the provided directory '*' does not exist" {puts "Node failed to start on an invalid directory, as expected"; set WAIT_FOR_EOF 1; exp_continue }
- eof {
- if {$WAIT_FOR_EOF == 0} {
- close;
- ::AlgorandGoal::Abort "Goal Node Stop did not fail as expected"
- }
- set WAIT_FOR_EOF 0
- }
+ "^Cannot kill node: the provided directory '*' does not exist" {puts "Node failed successfully"; close}
+ eof { close; ::AlgorandGoal::Abort "Goal Node Stop did not fail as expected" }
}
-
+
# "break" the node by replacing it's ledger data files with "broken" ones.
lassign [exec find $TEST_PRIMARY_NODE_DIR -name "ledger.tracker.sqlite"] PRIMARY_TRACKER_DATABASE_FILE
exec find $TEST_PRIMARY_NODE_DIR -name "ledger.tracker.sqlite*" -delete