Skip to content

Commit 2c228c0

Browse files
committed
Fixed failing tests.
1 parent 23836da commit 2c228c0

File tree

4 files changed

+133
-138
lines changed

4 files changed

+133
-138
lines changed

pubnub-gson/pubnub-gson-impl/config/ktlint/baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<error line="1" column="1" source="standard:no-empty-file" />
55
</file>
66
<file name="src/test/kotlin/com/pubnub/api/PNConfigurationTest.kt">
7-
<error line="120" column="13" source="standard:function-naming" />
7+
<error line="93" column="13" source="standard:function-naming" />
88
</file>
99
</baseline>

pubnub-kotlin/pubnub-kotlin-impl/src/main/kotlin/com/pubnub/internal/presence/Presence.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ internal class PresenceNoOp(
142142
if (heartbeatNotificationOptions == PNHeartbeatNotificationOptions.ALL ||
143143
heartbeatNotificationOptions == PNHeartbeatNotificationOptions.FAILURES
144144
) {
145-
listenerManager.announce(
146-
PNStatus(
147-
PNStatusCategory.PNHeartbeatFailed, PubNubException.from(exception)
148-
)
149-
)
145+
listenerManager.announce(PNStatus(PNStatusCategory.PNHeartbeatFailed, PubNubException.from(exception)))
150146
}
151147
}.onSuccess {
152148
if (heartbeatNotificationOptions == PNHeartbeatNotificationOptions.ALL) {

pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy/BaseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ abstract class BaseTest {
101101
get(urlMatching(urlPattern)).willReturn(
102102
aResponse().withBody(
103103
"""
104-
{"message":"OK","service":"Presence","status":200}
105-
""".trimIndent()
104+
{"message":"OK","service":"Presence","status":200}
105+
""".trimIndent()
106106
)
107107
)
108108
)

0 commit comments

Comments
 (0)