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

EnvironmentVariables clear() does not work properly #86

Open
serkan-ozkan opened this issue Aug 14, 2022 · 0 comments
Open

EnvironmentVariables clear() does not work properly #86

serkan-ozkan opened this issue Aug 14, 2022 · 0 comments

Comments

@serkan-ozkan
Copy link

serkan-ozkan commented Aug 14, 2022

I have a test dependent of environment variables. I am setting environment variable in @before like this.

    @Rule
    public final EnvironmentVariables environmentVariables = new EnvironmentVariables();

@Before
    public void setUp() throws Exception {
        environmentVariables.set("someValue","testLink");
    }

In one of the test I need to clear the same environment variable. But when I do this:

environmentVariables.clear("someValue");

When I run the test alone it works fine but when I run all the tests in the class, environment variable is not cleared. Probably I am missin something but it can be a bug as well.

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