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

Reset env if needed on every test case #4

Open
Alberdi opened this issue Apr 25, 2022 · 0 comments
Open

Reset env if needed on every test case #4

Alberdi opened this issue Apr 25, 2022 · 0 comments

Comments

@Alberdi
Copy link
Member

Alberdi commented Apr 25, 2022

In nproxy we have some tests that need to set some particular env values. To ensure that the values set in one test don't carry over to the others, I had added some code to reset it on each test case, so it doesn't matter what the previous test did to the env or if it failed before setting up the previous values. Maybe we should add some helper to nct_util to accomplish this? Not sure how common this scenario is.

Note that in nproxy is a bit more complicated because the env is saved per group and not per suite.

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

No branches or pull requests

1 participant