@@ -130,7 +130,7 @@ final class MQTTNIOTests: XCTestCase {
130
130
expectation. fulfill ( )
131
131
}
132
132
133
- wait ( for: [ expectation] , timeout: 1 .0)
133
+ wait ( for: [ expectation] , timeout: 5 .0)
134
134
135
135
XCTAssertFalse ( client. isActive ( ) )
136
136
try client. syncShutdownGracefully ( )
@@ -159,7 +159,7 @@ final class MQTTNIOTests: XCTestCase {
159
159
try client. publish ( to: " testMQTTPublishRetain " , payload: payload, qos: . atLeastOnce, retain: true ) . wait ( )
160
160
_ = try client. subscribe ( to: [ . init( topicFilter: " testMQTTPublishRetain " , qos: . atLeastOnce) ] ) . wait ( )
161
161
162
- wait ( for: [ expectation] , timeout: 2 .0)
162
+ wait ( for: [ expectation] , timeout: 5 .0)
163
163
164
164
try client. disconnect ( ) . wait ( )
165
165
try client. syncShutdownGracefully ( )
@@ -193,7 +193,7 @@ final class MQTTNIOTests: XCTestCase {
193
193
try client. publish ( to: " testAtLeastOnce " , payload: payload, qos: . atLeastOnce) . wait ( )
194
194
try client. publish ( to: " testExactlyOnce " , payload: payload, qos: . exactlyOnce) . wait ( )
195
195
196
- wait ( for: [ expectation] , timeout: 2 .0)
196
+ wait ( for: [ expectation] , timeout: 5 .0)
197
197
198
198
try client. disconnect ( ) . wait ( )
199
199
try client2. disconnect ( ) . wait ( )
@@ -230,7 +230,7 @@ final class MQTTNIOTests: XCTestCase {
230
230
try client2. unsubscribe ( from: [ " testUnsubscribe " ] ) . wait ( )
231
231
try client. publish ( to: " testUnsubscribe " , payload: payload, qos: . atLeastOnce) . wait ( )
232
232
233
- wait ( for: [ expectation] , timeout: 2 .0)
233
+ wait ( for: [ expectation] , timeout: 5 .0)
234
234
235
235
try client. disconnect ( ) . wait ( )
236
236
try client2. disconnect ( ) . wait ( )
@@ -265,7 +265,7 @@ final class MQTTNIOTests: XCTestCase {
265
265
_ = try client2. subscribe ( to: [ . init( topicFilter: " testLargeAtLeastOnce " , qos: . atLeastOnce) ] ) . wait ( )
266
266
try client. publish ( to: " testLargeAtLeastOnce " , payload: payload, qos: . atLeastOnce) . wait ( )
267
267
268
- wait ( for: [ expectation] , timeout: 2 .0)
268
+ wait ( for: [ expectation] , timeout: 5 .0)
269
269
270
270
try client. disconnect ( ) . wait ( )
271
271
try client2. disconnect ( ) . wait ( )
@@ -361,7 +361,7 @@ final class MQTTNIOTests: XCTestCase {
361
361
// should not receive previous publish on connect as this is a cleanSession
362
362
_ = try client2. connect ( cleanSession: true ) . wait ( )
363
363
364
- wait ( for: [ expectation] , timeout: 2 .0)
364
+ wait ( for: [ expectation] , timeout: 5 .0)
365
365
366
366
try client. disconnect ( ) . wait ( )
367
367
try client2. disconnect ( ) . wait ( )
0 commit comments