diff --git a/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift b/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift index 162e939779..9706d58e4c 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift +++ b/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift @@ -57,7 +57,7 @@ class NativeAuthPluginTests: XCTestCase { case .success(let session): XCTAssertEqual(session.isSignedIn, isSignedIn) case .failure(let error): - if(error.code == "channel-error") { + if(error.code == "null-error") { XCTFail("fetchAuthSession failed with error: \(error)") } }