diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-07-02 10:38:11 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-07-02 10:38:11 +0200 |
| commit | 988237bbd5d01379433bd22e99fba06837b359f9 (patch) | |
| tree | 751639ee92ad5e456200182b349618d73c34f292 /tests/api_wait_end_3n | |
| parent | b1b59d5fe607049439fe14754b067a61c9cfa055 (diff) | |
Improve tests
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 |
