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

chore: remove delay to start datastore in tests #3738

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

Jordan-Nelson
Copy link
Member

@Jordan-Nelson Jordan-Nelson commented Sep 13, 2023

Issue #, if available:

Description of changes:

See passing test run (with all the cloud sync tests running): https://github.com/aws-amplify/amplify-flutter/actions/runs/6188100758/job/16799548931?pr=3738

Note: As mentioned in aws-amplify/amplify-android#1690 (comment), and aws-amplify/amplify-android#1464, calling stop and then start multiple times in a row, or calling stop/clear multiple times in a row will still result in issues.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Jordan-Nelson Jordan-Nelson force-pushed the feat/remove-ds-timeout branch 3 times, most recently from 8e432a3 to 91efb1e Compare September 13, 2023 18:04
@Jordan-Nelson Jordan-Nelson marked this pull request as ready for review September 14, 2023 17:26
@Jordan-Nelson Jordan-Nelson requested a review from a team as a code owner September 14, 2023 17:26
@Jordan-Nelson Jordan-Nelson changed the title chore: remove delay to start datastore chore: remove delay to start datastore in tests Sep 14, 2023
@@ -22,7 +22,7 @@ void main() {
await Amplify.DataStore.save(blog);
var resultOne = await Amplify.DataStore.query(Blog.classType);
expect(resultOne, isNotEmpty);
await Amplify.DataStore.clear();
await clearDataStore();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clearDataStore(); adds a delay before calling clear, which is still needed since this test calls clear and then start multiple times in a row.

@Jordan-Nelson Jordan-Nelson merged commit 0c6ec05 into main Sep 14, 2023
@Jordan-Nelson Jordan-Nelson deleted the feat/remove-ds-timeout branch September 14, 2023 18:29
fjnoyp pushed a commit that referenced this pull request Sep 21, 2023
chore: remove start delay is datastore tests
fjnoyp pushed a commit that referenced this pull request Sep 21, 2023
chore: remove start delay is datastore tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants