diff options
Diffstat (limited to 'tests/api_wait_end_3n')
| -rw-r--r-- | tests/api_wait_end_3n/node.py | 3 | ||||
| -rw-r--r-- | tests/api_wait_end_3n/out | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/api_wait_end_3n/node.py b/tests/api_wait_end_3n/node.py index a8fbcd7..eddc408 100644 --- a/tests/api_wait_end_3n/node.py +++ b/tests/api_wait_end_3n/node.py @@ -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") diff --git a/tests/api_wait_end_3n/out b/tests/api_wait_end_3n/out index 321b0c2..54656da 100644 --- a/tests/api_wait_end_3n/out +++ b/tests/api_wait_end_3n/out @@ -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 |
