Skip to content

Commit a07c6fe

Browse files
removed unnecessary assignment
1 parent 43cd2b2 commit a07c6fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,7 @@ public void testRequestMadeWithCorrectTimeZoneID() throws Exception {
884884
TimeZone.setDefault(TimeZone.getTimeZone(TIMEZONE_ID));
885885
OneSignalInit();
886886
threadAndTaskWait();
887-
JSONObject jsonObject = new JSONObject(ShadowOneSignalRestClient.lastPost.toString());
888-
assertEquals(TIMEZONE_ID, jsonObject.get("timezone_id"));
887+
assertEquals(TIMEZONE_ID, ShadowOneSignalRestClient.lastPost.get("timezone_id"));
889888
}
890889

891890
@Test

0 commit comments

Comments
 (0)