Skip to content

Commit 10c6066

Browse files
Dillon Nysdnys1
authored andcommitted
Fix test
1 parent 16d665f commit 10c6066

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

packages/auth/amplify_auth_cognito_test/test/state/auth_state_machine_test.dart

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,7 @@ void main() {
6060
emitsInOrder(<Matcher>[
6161
isA<AuthNotConfigured>(),
6262
isA<AuthConfiguring>(),
63-
isA<AuthFailure>(),
64-
]),
65-
);
66-
67-
await stateMachine.close();
68-
});
69-
70-
test('retry configure succeeds', () async {
71-
final authStateMachine = stateMachine.getOrCreate(AuthStateMachine.type);
72-
73-
stateMachine.dispatch(const AuthEvent.configure(badConfig));
74-
await expectLater(
75-
authStateMachine.stream.startWith(authStateMachine.currentState),
76-
emitsInOrder(<Matcher>[
77-
isA<AuthNotConfigured>(),
78-
isA<AuthConfiguring>(),
79-
isA<AuthFailure>(),
80-
]),
81-
);
82-
83-
stateMachine.dispatch(AuthEvent.configure(mockConfig));
84-
await expectLater(
85-
authStateMachine.stream.startWith(authStateMachine.currentState),
86-
emitsInOrder(<Matcher>[
87-
isA<AuthFailure>(),
88-
isA<AuthConfiguring>(),
89-
isA<AuthConfigured>(),
63+
emitsError(isA<ConfigurationError>()),
9064
]),
9165
);
9266

0 commit comments

Comments
 (0)