Skip to content

Commit 76d14b2

Browse files
committed
1. update test sample time out time. 2.wait for subscribe future result
1 parent d2ae654 commit 76d14b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deviceadvisor/script/DATestRun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def delete_thing_with_certi(thingName, certiId, certiArn):
188188
elif (test_result_responds['status'] == 'RUNNING' and
189189
test_result_responds['testResult']['groups'][0]['tests'][0]['status'] == 'RUNNING'):
190190
exe_path = os.path.join("deviceadvisor/tests/",DATestConfig['test_exe_path'][test_name])
191-
result = subprocess.run('python3 ' + exe_path, timeout = 60*5, shell = True)
191+
result = subprocess.run('python3 ' + exe_path, timeout = 60*2, shell = True)
192192
# If the test finalizing then store the test result
193193
elif (test_result_responds['status'] != 'RUNNING'):
194194
test_result[test_name] = test_result_responds['status']

deviceadvisor/tests/mqtt_subscribe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
subscribe_future, packet_id = mqtt_connection.subscribe(
2929
topic=DATestUtils.topic,
3030
qos=mqtt.QoS.AT_MOST_ONCE)
31+
subscribe_future.result()
3132

3233
# Disconnect
3334
disconnect_future = mqtt_connection.disconnect()

0 commit comments

Comments
 (0)