summaryrefslogtreecommitdiff
path: root/tests/api_sendt_eth0_1s1r/sender.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-09 13:16:42 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-09 13:16:42 +0200
commitcfa677a0c678f742203aea601c6368768e5467da (patch)
treebe42cf52fc912a6ca78d334039d47cfb591e9e43 /tests/api_sendt_eth0_1s1r/sender.py
parent57f020e09d738e283520e8cfc88b4cdd1aeaa551 (diff)
Debug synchronization + add return code
Diffstat (limited to 'tests/api_sendt_eth0_1s1r/sender.py')
-rw-r--r--tests/api_sendt_eth0_1s1r/sender.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/api_sendt_eth0_1s1r/sender.py b/tests/api_sendt_eth0_1s1r/sender.py
index c7fdb0d..1da11b1 100644
--- a/tests/api_sendt_eth0_1s1r/sender.py
+++ b/tests/api_sendt_eth0_1s1r/sender.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python
+from esds import RCode
def sendt(node,timeout):
code=node.sendt("eth0","Hello World!",1,1,timeout)
- msg="Send worked!" if code == 0 else "Send failed"
+ msg="Send worked!" if code == RCode.SUCCESS else "Send failed"
node.log(msg)
def execute(api):