summaryrefslogtreecommitdiff
path: root/tests/api_send_eth0_2s1r
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api_send_eth0_2s1r')
-rw-r--r--tests/api_send_eth0_2s1r/receiver.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/api_send_eth0_2s1r/receiver.py b/tests/api_send_eth0_2s1r/receiver.py
index 2f268fd..b1b6b37 100644
--- a/tests/api_send_eth0_2s1r/receiver.py
+++ b/tests/api_send_eth0_2s1r/receiver.py
@@ -1,13 +1,14 @@
#!/usr/bin/env python
+from esds import RCode
def execute(api):
##### Simple receive from node 0
code, data=api.receive("eth0")
- msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
+ msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
api.log(msg)
##### Simple receive from node 1
code, data=api.receive("eth0")
- msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
+ msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
api.log(msg)