Skip to content

Commit 4810b7c

Browse files
committed
chore(api): fixed unit tests
1 parent 01bc094 commit 4810b7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/api/amplify_api_dart/test/graphql_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ void main() {
280280
'payload': {'data': mockSubscriptionData},
281281
};
282282

283+
mockProcessLifeCycleController = StreamController<ProcessStatus>();
283284
mockWebSocketService = MockWebSocketService();
284285
const subscriptionOptions = GraphQLSubscriptionOptions(
285286
pollInterval: Duration(seconds: 1),
@@ -600,6 +601,7 @@ void main() {
600601
});
601602

602603
test('should have correct state flow during a failure', () async {
604+
mockProcessLifeCycleController = StreamController<ProcessStatus>();
603605
mockWebSocketService = MockWebSocketService();
604606
const subscriptionOptions = GraphQLSubscriptionOptions(
605607
pollInterval: Duration(seconds: 1),

0 commit comments

Comments
 (0)