Skip to content

Commit dfe7449

Browse files
authored
Increase timeouts in tests and demos to min 1000ms (#1809)
1 parent 5da3a38 commit dfe7449

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

demos/defender/defender_demo_json/mqtt_operations.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
/**
168168
* @brief Timeout in milliseconds for transport send and receive.
169169
*/
170-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 100 )
170+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
171171

172172
/**
173173
* @brief The MQTT metrics string expected by AWS IoT MQTT Broker.

demos/mqtt/mqtt_demo_basic_tls/mqtt_demo_basic_tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
/**
184184
* @brief Transport timeout in milliseconds for transport send and receive.
185185
*/
186-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500 )
186+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
187187

188188
/*-----------------------------------------------------------*/
189189

demos/mqtt/mqtt_demo_plaintext/mqtt_demo_plaintext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
/**
167167
* @brief Transport timeout in milliseconds for transport send and receive.
168168
*/
169-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500 )
169+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
170170

171171
/*-----------------------------------------------------------*/
172172

demos/mqtt/mqtt_demo_serializer/mqtt_demo_serializer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
/**
125125
* @brief Socket layer transportTimeout in milliseconds.
126126
*/
127-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
127+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
128128

129129
/**
130130
* @brief Number of time network receive will be attempted

demos/mqtt/mqtt_demo_subscription_manager/mqtt_demo_subscription_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
/**
234234
* @brief Transport timeout in milliseconds for transport send and receive.
235235
*/
236-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500 )
236+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
237237

238238
/*-----------------------------------------------------------*/
239239

demos/ota/ota_demo_core_http/ota_demo_core_http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
/**
125125
* @brief Transport timeout in milliseconds for transport send and receive.
126126
*/
127-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
127+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
128128

129129
/**
130130
* @brief Timeout for receiving CONNACK packet in milli seconds.

demos/ota/ota_demo_core_mqtt/ota_demo_core_mqtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
/**
116116
* @brief Transport timeout in milliseconds for transport send and receive.
117117
*/
118-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
118+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
119119

120120
/**
121121
* @brief Timeout for receiving CONNACK packet in milli seconds.

demos/shadow/shadow_demo_main/shadow_demo_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
/**
168168
* @brief Transport timeout in milliseconds for transport send and receive.
169169
*/
170-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500 )
170+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000 )
171171

172172
/**
173173
* @brief The MQTT metrics string expected by AWS IoT.

integration-test/mqtt/mqtt_system_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
/**
192192
* @brief Transport timeout in milliseconds for transport send and receive.
193193
*/
194-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 200U )
194+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
195195

196196
/**
197197
* @brief Timeout for receiving CONNACK packet in milli seconds.
@@ -210,7 +210,7 @@
210210
* PUBLISH message and ack responses for QoS 1 and QoS 2 communications
211211
* with the broker.
212212
*/
213-
#define MQTT_PROCESS_LOOP_TIMEOUT_MS ( 700U )
213+
#define MQTT_PROCESS_LOOP_TIMEOUT_MS ( 1000U )
214214

215215
/**
216216
* @brief The MQTT message published in this example.

0 commit comments

Comments
 (0)