Skip to content

Commit 47c97ad

Browse files
authored
fix(Auth): Fixing unit test (#2454)
1 parent 61b2a2c commit 47c97ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/CredentialStore/CredentialStoreOperationClientTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class CredentialStoreOperationClientTests: XCTestCase {
6666
case .asfDeviceId(let fetchedId, let fetchedUsername):
6767
XCTAssertEqual(deviceId, fetchedId)
6868
XCTAssertEqual(username, fetchedUsername)
69-
expectation.fulfill()
7069
default:
7170
XCTFail("Should return asfdevice")
7271
}
@@ -77,6 +76,7 @@ class CredentialStoreOperationClientTests: XCTestCase {
7776
// Fetch
7877
let asfDeviceId: CredentialStoreData? = try? await credentialClient.fetchData(type: .asfDeviceId(username: username))
7978
XCTAssertNil(asfDeviceId)
79+
expectation.fulfill()
8080
}
8181

8282
}

0 commit comments

Comments
 (0)