Skip to content

Commit f4b0e9f

Browse files
committed
Make debugLogger test pass more reliably by making it more specific
1 parent a25baca commit f4b0e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/PusherIncomingEventHandlingTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ class HandlingIncomingEventsSpec: QuickSpec {
104104
}
105105

106106
it("should pass incoming messages to the debugLogger if one is set") {
107-
let debugLogger = { (text: String) in socket.appendToCallbackCheckString(text) }
107+
let debugLogger = { (text: String) in
108+
if text.rangeOfString("websocketDidReceiveMessage") != nil {
109+
socket.appendToCallbackCheckString(text)
110+
}
111+
}
108112
pusher = Pusher(key: key)
109113
pusher.connection.debugLogger = debugLogger
110114
socket.delegate = pusher.connection

0 commit comments

Comments
 (0)