mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 02:33:51 +08:00
Fix tests on when running under valgrind
This commit is contained in:
@@ -46,6 +46,9 @@ def do_test():
|
||||
|
||||
## Now repeat - check it works as before
|
||||
|
||||
if os.environ.get('MOSQ_USE_VALGRIND') is not None:
|
||||
time.sleep(0.5)
|
||||
|
||||
# Open all allowed connections, a limit of 10
|
||||
for i in range(0, 10):
|
||||
socks.append(mosq_test.do_client_connect(connect_packets_ok[i], connack_packets_ok[i], port=port))
|
||||
|
||||
@@ -46,6 +46,9 @@ def do_test():
|
||||
|
||||
## Now repeat - check it works as before
|
||||
|
||||
if os.environ.get('MOSQ_USE_VALGRIND') is not None:
|
||||
time.sleep(0.5)
|
||||
|
||||
# Open all allowed connections, a limit of 10
|
||||
for i in range(0, 10):
|
||||
socks.append(mosq_test.do_client_connect(connect_packets_ok[i], connack_packets_ok[i], port=port))
|
||||
|
||||
Reference in New Issue
Block a user