File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ final class RealtimeTests: XCTestCase {
172
172
173
173
try ? await Task . sleep ( nanoseconds: NSEC_PER_SEC * 2 )
174
174
175
- assertInlineSnapshot ( of: ws. sentMessages, as: . json) {
175
+ assertInlineSnapshot ( of: ws. sentMessages. filter { $0 . event == " phx_join " } , as: . json) {
176
176
"""
177
177
[
178
178
{
@@ -197,14 +197,6 @@ final class RealtimeTests: XCTestCase {
197
197
" ref " : " 1 " ,
198
198
" topic " : " realtime:public:messages "
199
199
},
200
- {
201
- " event " : " heartbeat " ,
202
- " payload " : {
203
-
204
- },
205
- " ref " : " 2 " ,
206
- " topic " : " phoenix "
207
- },
208
200
{
209
201
" event " : " phx_join " ,
210
202
" join_ref " : " 2 " ,
@@ -226,14 +218,6 @@ final class RealtimeTests: XCTestCase {
226
218
},
227
219
" ref " : " 2 " ,
228
220
" topic " : " realtime:public:messages "
229
- },
230
- {
231
- " event " : " heartbeat " ,
232
- " payload " : {
233
-
234
- },
235
- " ref " : " 3 " ,
236
- " topic " : " phoenix "
237
221
}
238
222
]
239
223
"""
You can’t perform that action at this time.
0 commit comments