Improve tests

This commit is contained in:
Loic Guegan 2022-07-02 10:38:11 +02:00
parent b1b59d5fe6
commit 988237bbd5
3 changed files with 20 additions and 7 deletions

View file

@ -4,7 +4,8 @@ def execute(api):
wait=api.node_id
api.log("Before wait for "+str(wait)+"s")
api.wait(wait) # Since 3 nodes max(wait)==2
api.log("First wait end")
# Ensure that wait end return back when simulation ends
api.wait_end()
api.log("Terminated")

View file

@ -1,6 +1,9 @@
[t=0.000,src=n0] Before wait for 0s
[t=0.000,src=n0] First wait end
[t=0.000,src=n1] Before wait for 1s
[t=0.000,src=n2] Before wait for 2s
[t=1.000,src=n1] First wait end
[t=2.000,src=n2] First wait end
[t=2.000,src=n0] Terminated
[t=2.000,src=n1] Terminated
[t=2.000,src=n2] Terminated