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
14
tests/api_receivet0_eth0_1s1r/receiver.py
Normal file
14
tests/api_receivet0_eth0_1s1r/receiver.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
def receivet(node,timeout):
|
||||
##### Simple receive
|
||||
code, data=node.receivet("eth0",timeout)
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
node.log(msg)
|
||||
|
||||
def execute(api):
|
||||
# Should not works since communication start at t=0s
|
||||
receivet(api,0)
|
||||
api.wait(1)
|
||||
# Now communication started
|
||||
receivet(api,0) # Should work (no timeout error)
|
Loading…
Add table
Add a link
Reference in a new issue