Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failing CI #3774

Closed
wants to merge 11 commits into from
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

// comment to trigger tests

import 'dart:io';

import 'package:amplify_api/amplify_api.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ class AuthTestRunner {
List<APIAuthProvider> apiAuthProviders = const [],
AWSHttpClient? baseClient,
}) async {
await Future<void>.delayed(const Duration(milliseconds: 100));
final config = _amplifyEnvironments[environmentName]!;
final hasApiPlugin = AmplifyConfig.fromJson(
jsonDecode(config) as Map<String, dynamic>,
).api?.awsPlugin !=
null;
final authPlugin = AmplifyAuthTestPlugin(hasApiPlugin: hasApiPlugin);
await Future<void>.delayed(const Duration(milliseconds: 50));
await Amplify.addPlugins([
authPlugin,
if (hasApiPlugin)
Expand All @@ -114,6 +116,7 @@ class AuthTestRunner {
baseHttpClient: baseClient,
),
]);
await Future<void>.delayed(const Duration(milliseconds: 50));
await Amplify.configure(config);
await Amplify.Auth.signOut();
addTearDown(
Expand Down
Loading