Skip to content

Commit b26d648

Browse files
committed
fix tests
1 parent 3602847 commit b26d648

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

Tests/RealtimeTests/RealtimeTests.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ final class RealtimeTests: XCTestCase {
172172

173173
try? await Task.sleep(nanoseconds: NSEC_PER_SEC * 2)
174174

175-
assertInlineSnapshot(of: ws.sentMessages, as: .json) {
175+
assertInlineSnapshot(of: ws.sentMessages.filter { $0.event == "phx_join" }, as: .json) {
176176
"""
177177
[
178178
{
@@ -197,14 +197,6 @@ final class RealtimeTests: XCTestCase {
197197
"ref" : "1",
198198
"topic" : "realtime:public:messages"
199199
},
200-
{
201-
"event" : "heartbeat",
202-
"payload" : {
203-
204-
},
205-
"ref" : "2",
206-
"topic" : "phoenix"
207-
},
208200
{
209201
"event" : "phx_join",
210202
"join_ref" : "2",
@@ -226,14 +218,6 @@ final class RealtimeTests: XCTestCase {
226218
},
227219
"ref" : "2",
228220
"topic" : "realtime:public:messages"
229-
},
230-
{
231-
"event" : "heartbeat",
232-
"payload" : {
233-
234-
},
235-
"ref" : "3",
236-
"topic" : "phoenix"
237221
}
238222
]
239223
"""

0 commit comments

Comments
 (0)