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 {
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 """
You can’t perform that action at this time.
0 commit comments