diff options
Diffstat (limited to 'tests/api_send_eth0_3s1r/receiver.py')
| -rw-r--r-- | tests/api_send_eth0_3s1r/receiver.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/api_send_eth0_3s1r/receiver.py b/tests/api_send_eth0_3s1r/receiver.py new file mode 100644 index 0000000..4516d7a --- /dev/null +++ b/tests/api_send_eth0_3s1r/receiver.py @@ -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) |
