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

Clear additional global state between unit test runs #1021

Merged
merged 2 commits into from
Mar 23, 2018

Conversation

starkos
Copy link
Member

@starkos starkos commented Mar 19, 2018

Clears out some global state that was being left over between unit tests runs, causing indeterminate results when running multiple tests against data at the global scope.

Clears out some global state that was being left over between unit tests runs, causing indeterminate results when running multiple tests against data at the global scope.
@starkos
Copy link
Member Author

starkos commented Mar 20, 2018

FWIW, I have no idea why the Travis macOS test has failed…I'm unable to reproduce the problem here on my macOS machine. Re-ran the job, worked this time.

Copy link
Member

@samsinsane samsinsane left a comment

Choose a reason for hiding this comment

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

Makes sense.

@tvandijck
Copy link
Contributor

The macOS test failed because of one other 'order' dependency... so this commit is a step in the right direction, but I think there is some other global state that has a somewhat rare effect on that particular macOS test.

either way... LGTM... merge it...

@starkos starkos merged commit 428e9b3 into premake:master Mar 23, 2018
@starkos starkos deleted the improve-api-reset branch March 23, 2018 17:59
starkos added a commit that referenced this pull request Apr 2, 2018
Follow up to #1021: I removed the state blocks added by the tests, but neglected to put back a new, empty global state block for the next run.
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