From 80b3af98806f9e837f65e8074882a97b22d65427 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 9 Jul 2022 16:13:23 -0700 Subject: Sequence integration tests --- tools/test-integration.py | 10 ++-------- 1 file 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])) -- cgit v1.2.3