From c071c53a8fbbed9e5a66ba3e939909bf45296128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 22 Aug 2026 23:53:57 +0200 Subject: Fix parsing statements using innerBlock without new variables Changelog: Fixed parsing of disconnect and packet loss commands. --- test/script/network.et | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/script/network.et (limited to 'test/script/network.et') diff --git a/test/script/network.et b/test/script/network.et new file mode 100644 index 0000000..62006ad --- /dev/null +++ b/test/script/network.et @@ -0,0 +1,28 @@ +module network + +asset scripts: + path: ../asset/network + + +def run_test_from using p (file): + guard (file /= "") # TODO: forces (file :: String) + send "" to p # TODO: forces (p :: Process) + + with p: + send "load $file" + expect /load-done/ + + send "run Test" + expect /run-test-result Test (.*)/ capture result + guard (result == "done") + expect /run-done/ + + +test DisconnectNode: + spawn as p + run_test_from using p "${scripts.path}/disconnect_node.et" + + +test DisconnectNodes: + spawn as p + run_test_from using p "${scripts.path}/disconnect_nodes.et" -- cgit v1.2.3