File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/amplify_datastore/example/ios/unit_tests Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ class NativeAuthPluginTests: XCTestCase {
52
52
let nativePlugin = NativeAuthPlugin ( binaryMessenger: binaryMessenger)
53
53
let expectation = expectation ( description: " fetchAuthSession completes " )
54
54
nativePlugin. fetchAuthSession { result in
55
+ defer { expectation. fulfill ( ) }
55
56
switch result {
56
- case . success( let session) :
57
- defer { expectation. fulfill ( ) }
58
- XCTAssertEqual ( session. isSignedIn, isSignedIn)
59
- case . failure( let error) :
60
- XCTFail ( " fetchAuthSession failed with error: \( error) " )
57
+ case . success( let session) :
58
+ XCTAssertEqual ( session. isSignedIn, isSignedIn)
59
+ case . failure( let error) :
60
+ XCTFail ( " fetchAuthSession failed with error: \( error) " )
61
61
}
62
62
}
63
63
waitForExpectations ( timeout: 1 )
You can’t perform that action at this time.
0 commit comments