@@ -405,7 +405,7 @@ class IterableAPITests: XCTestCase {
405
405
}
406
406
}
407
407
408
- wait ( for: [ expectation] , timeout: testExpectationTimeoutForInverted )
408
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
409
409
}
410
410
411
411
func testDisableDeviceNotRegistered( ) {
@@ -443,9 +443,11 @@ class IterableAPITests: XCTestCase {
443
443
guard let request = networkSession. getRequest ( withEndPoint: Const . Path. disableDevice) else {
444
444
return
445
445
}
446
+
446
447
guard let body = TestUtils . getRequestBody ( request: request) else {
447
448
return
448
449
}
450
+
449
451
TestUtils . validate ( request: request,
450
452
requestType: . post,
451
453
apiEndPoint: Endpoint . api,
@@ -461,7 +463,7 @@ class IterableAPITests: XCTestCase {
461
463
}
462
464
}
463
465
464
- wait ( for: [ expectation] , timeout: testExpectationTimeoutForInverted )
466
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
465
467
}
466
468
467
469
// Same test as above but without using success/failure callback
@@ -496,7 +498,7 @@ class IterableAPITests: XCTestCase {
496
498
internalAPI. disableDeviceForCurrentUser ( )
497
499
}
498
500
499
- wait ( for: [ expectation] , timeout: testExpectationTimeoutForInverted )
501
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
500
502
}
501
503
502
504
func testDisableDeviceForAllUsers( ) {
@@ -535,7 +537,7 @@ class IterableAPITests: XCTestCase {
535
537
536
538
internalAPI. register ( token: token)
537
539
538
- wait ( for: [ expectation] , timeout: testExpectationTimeoutForInverted )
540
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
539
541
}
540
542
541
543
// Same test as above but without using success/failure callback
@@ -572,7 +574,7 @@ class IterableAPITests: XCTestCase {
572
574
}
573
575
internalAPI. register ( token: token)
574
576
575
- wait ( for: [ expectation] , timeout: testExpectationTimeoutForInverted )
577
+ wait ( for: [ expectation] , timeout: testExpectationTimeout )
576
578
}
577
579
578
580
func testUpdateCart( ) {
@@ -597,7 +599,7 @@ class IterableAPITests: XCTestCase {
597
599
let itemsElement = body [ JsonKey . Commerce. items] as! [ [ AnyHashable : Any ] ]
598
600
XCTAssertEqual ( itemsElement. count, items. count)
599
601
600
- //TODO: create a CommerceItem matcher for use right here, and in trackPurchase tests
602
+ // TODO: create a CommerceItem matcher for use right here, and in trackPurchase tests
601
603
602
604
condition1. fulfill ( )
603
605
}
0 commit comments