Default test timeout of 60s by default is too long.

This commit is contained in:
Roger A. Light 2020-09-16 13:31:10 +01:00
parent f87ef68fae
commit 4372a2b925
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from mosq_test_helper import *
rc = 1
keepalive = 10
keepalive = 5
props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MAXIMUM_PACKET_SIZE, 2)
connect_packet = mosq_test.gen_connect("test", proto_ver=5, keepalive=keepalive, properties=props)

View File

@ -163,7 +163,7 @@ def do_receive_send(sock, receive_packet, send_packet, error_string="receive sen
raise ValueError
def do_client_connect(connect_packet, connack_packet, hostname="localhost", port=1888, timeout=60, connack_error="connack"):
def do_client_connect(connect_packet, connack_packet, hostname="localhost", port=1888, timeout=10, connack_error="connack"):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(timeout)
sock.connect((hostname, port))