Skip to content

Commit 96f285d

Browse files
committed
Reenable realtime tests
1 parent 32643f0 commit 96f285d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/AppleSwift55Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

tests/languages/apple/Tests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)