Skip to content

Commit 3b143cd

Browse files
authored
Merge pull request #1699 from OneSignal/fix/iam-liquid-syntax-test-failures
Update assertEquals values in failed unit tests
2 parents e292d5a + 6901b44 commit 3b143cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ public void shouldShowInAppPreviewWhenInFocus() throws Exception {
13101310
new FCMBroadcastReceiver().onReceive(blankActivity, intent);
13111311
threadAndTaskWait();
13121312
threadAndTaskWait();
1313-
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MobnVsbCk7Cjwvc2NyaXB0Pg==", ShadowOSWebView.lastData);
1313+
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MoKTsKPC9zY3JpcHQ+", ShadowOSWebView.lastData);
13141314
}
13151315

13161316
@Test
@@ -1336,7 +1336,7 @@ public void shouldShowInAppPreviewWhenOpeningPreviewNotification() throws Except
13361336
NotificationOpenedProcessor_processFromContext(blankActivity, notificationOpenIntent);
13371337
threadAndTaskWait();
13381338
threadAndTaskWait();
1339-
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MobnVsbCk7Cjwvc2NyaXB0Pg==", ShadowOSWebView.lastData);
1339+
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MoKTsKPC9zY3JpcHQ+", ShadowOSWebView.lastData);
13401340

13411341
// Ensure the app is foregrounded.
13421342
assertNotNull(shadowOf(blankActivity).getNextStartedActivity());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ public void osIAMPreview_showsPreview() throws Exception {
211211
helper_startHMSOpenActivity(intent);
212212
threadAndTaskWait();
213213
threadAndTaskWait();
214-
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MobnVsbCk7Cjwvc2NyaXB0Pg==", ShadowOSWebView.lastData);
214+
assertEquals("PGh0bWw+PC9odG1sPgoKPHNjcmlwdD4KICAgIHNldFBsYXllclRhZ3MoKTsKPC9zY3JpcHQ+", ShadowOSWebView.lastData);
215215
}
216216
}

0 commit comments

Comments
 (0)