Skip to content

Commit

Permalink
Attempt to fix 11-message-expiry for travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed May 29, 2019
1 parent 7d954fa commit 18b897e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/broker/11-message-expiry.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def write_config(filename, port):
puback1s_packet = mosq_test.gen_puback(mid)

mid=2
props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MESSAGE_EXPIRY_INTERVAL, 10)
props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MESSAGE_EXPIRY_INTERVAL, 100)
publish2s_packet = mosq_test.gen_publish("subpub/qos1", mid=mid, qos=1, payload="message2", proto_ver=5, properties=props)
puback2s_packet = mosq_test.gen_puback(mid)

Expand Down Expand Up @@ -79,7 +79,7 @@ def write_config(filename, port):

sock = mosq_test.do_client_connect(connect_packet, connack2_packet, timeout=20, port=port)
packet = sock.recv(len(publish2s_packet))
for i in range(9, 1, -1):
for i in range(100, 1, -1):
props = mqtt5_props.gen_uint32_prop(mqtt5_props.PROP_MESSAGE_EXPIRY_INTERVAL, i)
publish2r_packet = mosq_test.gen_publish("subpub/qos1", mid=2, qos=1, payload="message2", proto_ver=5, properties=props)
if packet == publish2r_packet:
Expand Down

0 comments on commit 18b897e

Please sign in to comment.