Skip to content

fix io_test#48097

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
dnfield:io_test
Jan 3, 2020
Merged

fix io_test#48097
fluttergithubbot merged 1 commit intoflutter:masterfrom
dnfield:io_test

Conversation

@dnfield
Copy link
Copy Markdown
Contributor

@dnfield dnfield commented Jan 3, 2020

Reset global state after test that modifies it.

Part of making #47963 work

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 3, 2020
Copy link
Copy Markdown
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@fluttergithubbot fluttergithubbot merged commit 5ff7225 into flutter:master Jan 3, 2020
@dnfield dnfield deleted the io_test branch January 3, 2020 04:00
setExitFunctionForTests((int value) {});

expect(() => exit(0), returnsNormally);
restoreExitFunction();
Copy link
Copy Markdown
Member

@zanderso zanderso Jan 6, 2020

Choose a reason for hiding this comment

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

Probably a bit paranoid, but should this go in a finally {} ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dnfield dnfield mentioned this pull request Jan 6, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants