Skip to content

Commit edfc5c8

Browse files
committed
Fixes
1 parent 2c74702 commit edfc5c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

iterableapi/src/test/java/com/iterable/iterableapi/IterablePushActionReceiverTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ public void testBackgroundCustomActionProcessedAfterSDKInit() throws Exception {
197197
// Receive push action when SDK is not initialized (action won't be handled)
198198
iterablePushActionReceiver.onReceive(ApplicationProvider.getApplicationContext(), intent);
199199

200+
// Reset to real implementation so custom action handler gets invoked
201+
IterableActionRunner.instance = new IterableActionRunner.IterableActionRunnerImpl();
202+
200203
// Now initialize SDK with a custom action handler
201204
stubAnyRequestReturningStatusCode(server, 200, "{}");
202205
final boolean[] handlerCalled = {false};
@@ -264,6 +267,9 @@ public void testPreviousPendingActionClearedOnNewPush() throws Exception {
264267
secondIntent.putExtra(IterableConstants.ITERABLE_DATA_KEY, IterableTestUtils.getResourceString("push_payload_custom_action.json"));
265268
iterablePushActionReceiver.onReceive(ApplicationProvider.getApplicationContext(), secondIntent);
266269

270+
// Reset to real implementation so custom action handler gets invoked
271+
IterableActionRunner.instance = new IterableActionRunner.IterableActionRunnerImpl();
272+
267273
// Now initialize SDK with a custom action handler
268274
stubAnyRequestReturningStatusCode(server, 200, "{}");
269275
final String[] lastActionType = {null};

0 commit comments

Comments
 (0)