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
26
26
...Base::LARGE_FILE_RESPONSES ,
27
27
...Base::LARGE_FILE_RESPONSES ,
28
28
...Base::EXCEPTION_RESPONSES ,
29
- // ...Base::REALTIME_RESPONSES,
29
+ ...Base::REALTIME_RESPONSES ,
30
30
...Base::COOKIE_RESPONSES ,
31
31
...Base::QUERY_HELPER_RESPONSES ,
32
32
...Base::PERMISSION_HELPER_RESPONSES ,
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ class Tests: XCTestCase {
31
31
let realtime = Realtime ( client)
32
32
var realtimeResponse = " Realtime failed! "
33
33
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
+ }
40
40
41
41
var mock : Mock
42
42
@@ -132,8 +132,8 @@ class Tests: XCTestCase {
132
132
print ( error. localizedDescription)
133
133
}
134
134
135
- // wait(for: [expectation], timeout: 10.0)
136
- // print(realtimeResponse)
135
+ wait ( for: [ expectation] , timeout: 10.0 )
136
+ print ( realtimeResponse)
137
137
138
138
mock = try await general. setCookie ( )
139
139
print ( mock. result)
You can’t perform that action at this time.
0 commit comments