Skip to content

Commit 720893f

Browse files
committed
rm ad_id tests
* ad_id is no longer used so removed it from the remaining tests
1 parent 73a1c6f commit 720893f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ public void testLocationSchedule() throws Exception {
233233
assertEquals(3.3f, ShadowOneSignalRestClient.lastPost.opt("loc_acc"));
234234

235235
assertEquals(false, ShadowOneSignalRestClient.lastPost.opt("loc_bg"));
236-
assertEquals("11111111-2222-3333-4444-555555555555", ShadowOneSignalRestClient.lastPost.opt("ad_id"));
237236

238237
// Testing loc_bg
239238
blankActivityController.pause();
@@ -249,7 +248,6 @@ public void testLocationSchedule() throws Exception {
249248
assertEquals(3.3f, ShadowOneSignalRestClient.lastPost.opt("loc_acc"));
250249
assertEquals(true, ShadowOneSignalRestClient.lastPost.opt("loc_bg"));
251250
assertEquals(1, ShadowOneSignalRestClient.lastPost.optInt("loc_type"));
252-
assertEquals("11111111-2222-3333-4444-555555555555", ShadowOneSignalRestClient.lastPost.opt("ad_id"));
253251
}
254252

255253
@Test
@@ -449,8 +447,6 @@ public void testLocationSchedule_Huawei() throws Exception {
449447
assertEquals(3.3f, ShadowOneSignalRestClient.lastPost.opt("loc_acc"));
450448

451449
assertEquals(false, ShadowOneSignalRestClient.lastPost.opt("loc_bg"));
452-
// Currently not getting ad_id for HMS devices
453-
assertNull(ShadowOneSignalRestClient.lastPost.opt("ad_id"));
454450

455451
// Testing loc_bg
456452
blankActivityController.pause();
@@ -467,8 +463,6 @@ public void testLocationSchedule_Huawei() throws Exception {
467463
assertEquals(3.3f, ShadowOneSignalRestClient.lastPost.opt("loc_acc"));
468464
assertEquals(true, ShadowOneSignalRestClient.lastPost.opt("loc_bg"));
469465
assertEquals(1, ShadowOneSignalRestClient.lastPost.optInt("loc_type"));
470-
// Currently not getting ad_id for HMS devices
471-
assertNull(ShadowOneSignalRestClient.lastPost.opt("ad_id"));
472466
}
473467

474468
@Test

0 commit comments

Comments
 (0)