aboutsummaryrefslogtreecommitdiff
path: root/tools/test-integration.py
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-09 16:13:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-09 16:13:23 -0700
commit80b3af98806f9e837f65e8074882a97b22d65427 (patch)
treec5955167fc823ed1f299b3eab1bbd15a5a2f8cb6 /tools/test-integration.py
parente3c98044a2deba5ea6ece533cfe860e03e985fb9 (diff)
downloadtrackermap-server-80b3af98806f9e837f65e8074882a97b22d65427.tar.gz
trackermap-server-80b3af98806f9e837f65e8074882a97b22d65427.tar.bz2
trackermap-server-80b3af98806f9e837f65e8074882a97b22d65427.zip
Sequence integration tests
Diffstat (limited to 'tools/test-integration.py')
-rwxr-xr-xtools/test-integration.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/test-integration.py b/tools/test-integration.py
index 6251b0d97..e49648cb6 100755
--- a/tools/test-integration.py
+++ b/tools/test-integration.py
@@ -142,7 +142,7 @@ def send_message(port, message):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', port))
s.send(message)
- time.sleep(5)
+ time.sleep(0.5)
s.close()
def get_protocols(cookie, device_id):
@@ -178,14 +178,8 @@ if __name__ == "__main__":
print 'Missing: %d' % len(all - protocols)
print 'Covered: %d' % len(protocols)
- #if all - protocols:
- # print '\nMissing: %s\n' % repr(list((all - protocols)))
-
for protocol in messages:
- thread = threading.Thread(target = send_message, args = (ports[protocol], messages[protocol]))
- thread.start()
-
- time.sleep(10)
+ send_message(ports[protocol], messages[protocol])
for device in devices:
protocols -= set(get_protocols(cookie, devices[device]))