File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
iOS_SDK/OneSignalSDK/UnitTests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,8 @@ - (void)testEmailSubscriptionObserver {
367367
368368 [self waitForExpectations: @[expectation] timeout: 0.1 ];
369369
370- NSLog (@" CHECKING REQUIRES EMAIL AUTH" );
370+ [UnitTestCommonMethods runBackgroundThreads ];
371+
371372 XCTAssertEqual (observer->
last .
to .
emailAddress ,
@" [email protected] " );
372373 XCTAssertEqual (observer->last .to .emailUserId , @" 1234" );
373374 XCTAssertEqual (observer->last .to .emailAuthCode , @" test-hash-token" );
@@ -382,9 +383,11 @@ - (void)testEmailSubscriptionObserver {
382383 } withFailure: ^(NSError *error) {
383384 XCTFail (@" Encountered error: %@ " , error);
384385 }];
385-
386+
386387 [self waitForExpectations: @[logoutExpectation] timeout: 0.1 ];
387388
389+ [UnitTestCommonMethods runBackgroundThreads ];
390+
388391 XCTAssertNil (observer->last .to .emailAddress );
389392 XCTAssertNil (observer->last .to .emailAuthCode );
390393 XCTAssertNil (observer->last .to .emailUserId );
You can’t perform that action at this time.
0 commit comments