Skip to content

Commit

Permalink
Merge pull request #1090 from OneSignal/test/fix_iam_test_carryover
Browse files Browse the repository at this point in the history
[Tests] Fix IAM test carryover
  • Loading branch information
jkasten2 authored May 19, 2022
2 parents 8b41a8f + 7752928 commit 45b1974
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions iOS_SDK/OneSignalSDK/UnitTests/InAppMessagingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ of this software and associated documentation files (the "Software"), to deal
#import "OSInAppMessageAction.h"
#import "OSInAppMessageBridgeEvent.h"
#import "UIDeviceOverrider.h"
#import "OSMessagingControllerOverrider.h"

/*
Test to make sure that OSInAppMessage correctly implements
Expand Down Expand Up @@ -122,6 +123,15 @@ - (void)setUp {
*/
- (void)tearDown {
[super tearDown];
[UnitTestCommonMethods runBackgroundThreads];
[OneSignal setInAppMessageClickHandler:nil];
[OneSignal pauseInAppMessages:true];

OneSignalOverrider.shouldOverrideSessionLaunchTime = false;

[OSMessagingController.sharedInstance resetState];

NSTimerOverrider.shouldScheduleTimers = true;
}

-(void)testIphoneSimulator {
Expand Down

0 comments on commit 45b1974

Please sign in to comment.