mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 03:59:45 +00:00
Improve tests
This commit is contained in:
parent
1bef51d878
commit
d0ae9f3296
85 changed files with 77 additions and 44 deletions
19
tests/api_send_eth0_3s1r/receiver.py
Normal file
19
tests/api_send_eth0_3s1r/receiver.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
def receive(node, n):
|
||||
for i in range(0,n):
|
||||
code, data=node.receive("eth0")
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
node.log(msg)
|
||||
|
||||
def execute(api):
|
||||
# Receive the first 3 send that should end at 3s
|
||||
receive(api,3)
|
||||
# Receive the first 3 send that should end at 7s
|
||||
receive(api,3)
|
||||
# Receive the first 3 send that should end at 12s
|
||||
receive(api,3)
|
||||
# Receive the first 3 send that should end at 18s
|
||||
receive(api,3)
|
||||
# Should ends at 23s
|
||||
receive(api,1)
|
Loading…
Add table
Add a link
Reference in a new issue