@@ -50,7 +50,7 @@ class ParseLiveQueryTests: XCTestCase {
5050 masterKey: " masterKey " ,
5151 serverURL: url,
5252 testing: true )
53- ParseLiveQuery . client = ParseLiveQuery ( isDefault: true )
53+ ParseLiveQuery . client = try ? ParseLiveQuery ( isDefault: true )
5454 }
5555
5656 override func tearDownWithError( ) throws {
@@ -96,7 +96,7 @@ class ParseLiveQueryTests: XCTestCase {
9696 components. scheme = ( components. scheme == " https " || components. scheme == " wss " ) ? " wss " : " ws "
9797 let webSocketURL = components. url
9898
99- guard let client = ParseLiveQuery ( serverURL: originalURL) ,
99+ guard let client = try ? ParseLiveQuery ( serverURL: originalURL) ,
100100 let defaultClient = ParseLiveQuery . getDefault ( ) else {
101101 XCTFail ( " Should be able to initialize a new client " )
102102 return
@@ -116,7 +116,7 @@ class ParseLiveQueryTests: XCTestCase {
116116
117117 func testInitializeNewDefault( ) throws {
118118
119- guard let client = ParseLiveQuery ( isDefault: true ) ,
119+ guard let client = try ? ParseLiveQuery ( isDefault: true ) ,
120120 let defaultClient = ParseLiveQuery . getDefault ( ) else {
121121 XCTFail ( " Should be able to initialize a new client " )
122122 return
@@ -138,7 +138,7 @@ class ParseLiveQueryTests: XCTestCase {
138138 XCTFail ( " Should be able to initialize a new client " )
139139 return
140140 }
141- var client = ParseLiveQuery ( )
141+ var client = try ? ParseLiveQuery ( )
142142 if let client = client {
143143 XCTAssertTrue ( client. url. absoluteString. contains ( " ws " ) )
144144 } else {
0 commit comments