Skip to content

Commit b9376ba

Browse files
committed
Correct test clean up order on IAM tests
* Moved TestHelpers.afterTestCleanup() to run last as part of the cleanup after each test as InAppMessagingHelpers.clearTestState() can kick of threads and backgournd work which sometimes carrries over to the next test.
1 parent f362895 commit b9376ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OneSignalSDK/unittest/src/test/java/com/test/onesignal/InAppMessageIntegrationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ public void afterEachTest() throws Exception {
149149
ShadowDynamicTimer.shouldScheduleTimers = true;
150150
ShadowDynamicTimer.hasScheduledTimer = false;
151151
OneSignal.setInAppMessageClickHandler(null);
152-
TestHelpers.afterTestCleanup();
153-
154152
InAppMessagingHelpers.clearTestState();
153+
TestHelpers.afterTestCleanup();
155154
}
156155

157156
@Test

0 commit comments

Comments
 (0)