File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class AppleSwift55Test extends Base
2626 ...Base::LARGE_FILE_RESPONSES ,
2727 ...Base::LARGE_FILE_RESPONSES ,
2828 ...Base::EXCEPTION_RESPONSES ,
29- // ...Base::REALTIME_RESPONSES,
29+ ...Base::REALTIME_RESPONSES ,
3030 ...Base::COOKIE_RESPONSES ,
3131 ...Base::QUERY_HELPER_RESPONSES ,
3232 ...Base::PERMISSION_HELPER_RESPONSES ,
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ class Tests: XCTestCase {
3131 let realtime = Realtime ( client)
3232 var realtimeResponse = " Realtime failed! "
3333
34- // let expectation = XCTestExpectation(description: "realtime server")
35- //
36- // realtime.subscribe(channels: ["tests"]) { message in
37- // realtimeResponse = message.payload!["response"] as! String
38- // expectation.fulfill()
39- // }
34+ let expectation = XCTestExpectation ( description: " realtime server " )
35+
36+ realtime. subscribe ( channels: [ " tests " ] ) { message in
37+ realtimeResponse = message. payload![ " response " ] as! String
38+ expectation. fulfill ( )
39+ }
4040
4141 var mock : Mock
4242
@@ -132,8 +132,8 @@ class Tests: XCTestCase {
132132 print ( error. localizedDescription)
133133 }
134134
135- // wait(for: [expectation], timeout: 10.0)
136- // print(realtimeResponse)
135+ wait ( for: [ expectation] , timeout: 10.0 )
136+ print ( realtimeResponse)
137137
138138 mock = try await general. setCookie ( )
139139 print ( mock. result)
You can’t perform that action at this time.
0 commit comments