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

pull/1736/merge
Roger A. Light 5 years ago
parent f87ef68fae
commit 4372a2b925

@ -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)

@ -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))

Loading…
Cancel
Save