@@ -377,7 +377,7 @@ class IntegrationTests: XCTestCase {
377
377
XCTAssertEqual ( FunctionsErrorCode . outOfRange. rawValue, error. code)
378
378
XCTAssertEqual ( " explicit nope " , error. localizedDescription)
379
379
XCTAssertEqual ( [ " start " : 10 as Int32 , " end " : 20 as Int32 , " long " : 30 ] ,
380
- error. userInfo [ FunctionsErrorDetailsKey ] as! [ String : Int32 ] )
380
+ error. userInfo [ " details " ] as! [ String : Int32 ] )
381
381
expectation. fulfill ( )
382
382
} catch {
383
383
XCTAssert ( false , " Failed to unwrap the function result: \( error) " )
@@ -399,7 +399,7 @@ class IntegrationTests: XCTestCase {
399
399
XCTAssertEqual ( FunctionsErrorCode . outOfRange. rawValue, error. code)
400
400
XCTAssertEqual ( " explicit nope " , error. localizedDescription)
401
401
XCTAssertEqual ( [ " start " : 10 as Int32 , " end " : 20 as Int32 , " long " : 30 ] ,
402
- error. userInfo [ FunctionsErrorDetailsKey ] as! [ String : Int32 ] )
402
+ error. userInfo [ " details " ] as! [ String : Int32 ] )
403
403
return
404
404
}
405
405
XCTAssertFalse ( true , " Failed to throw error for missing result " )
@@ -451,7 +451,7 @@ class IntegrationTests: XCTestCase {
451
451
let error = try XCTUnwrap ( error! as NSError )
452
452
XCTAssertEqual ( FunctionsErrorCode . deadlineExceeded. rawValue, error. code)
453
453
XCTAssertEqual ( " DEADLINE EXCEEDED " , error. localizedDescription)
454
- XCTAssertNil ( error. userInfo [ FunctionsErrorDetailsKey ] )
454
+ XCTAssertNil ( error. userInfo [ " details " ] )
455
455
expectation. fulfill ( )
456
456
} catch {
457
457
XCTAssert ( false , " Failed to unwrap the function result: \( error) " )
@@ -473,7 +473,7 @@ class IntegrationTests: XCTestCase {
473
473
let error = try XCTUnwrap ( error) as NSError
474
474
XCTAssertEqual ( FunctionsErrorCode . deadlineExceeded. rawValue, error. code)
475
475
XCTAssertEqual ( " DEADLINE EXCEEDED " , error. localizedDescription)
476
- XCTAssertNil ( error. userInfo [ FunctionsErrorDetailsKey ] )
476
+ XCTAssertNil ( error. userInfo [ " details " ] )
477
477
return
478
478
}
479
479
XCTAssertFalse ( true , " Failed to throw error for missing result " )
0 commit comments