Skip to content

Conversation

@eolivelli
Copy link
Contributor

@eolivelli eolivelli commented Jun 7, 2022

Motivation:
This PR #15710 introduced a new test case that set some system properties without clearing them.

Modification:
clean up the env, in order to not pollute the execution of the other tests

  • doc-not-needed

@eolivelli eolivelli added this to the 2.11.0 milestone Jun 7, 2022
@eolivelli eolivelli self-assigned this Jun 7, 2022
assertEquals(properties.get("jclouds.region"), "jclouds-region");
assertEquals(config.getServiceEndpoint(), "http://localhost");
assertEquals(properties.get("jclouds.SystemPropertyA"), "A");
System.clearProperty("jclouds.SystemPropertyA");
Copy link
Contributor

Choose a reason for hiding this comment

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

better to do that in a finally block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense

@eolivelli eolivelli requested a review from nicoloboschi June 21, 2022 06:40
@eolivelli
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@eolivelli eolivelli merged commit bacc9d6 into apache:master Jun 24, 2022
codelipenghui pushed a commit that referenced this pull request Jun 28, 2022
mattisonchao pushed a commit that referenced this pull request Jul 2, 2022
@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jul 2, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 4, 2022
BewareMyPower pushed a commit that referenced this pull request Jul 28, 2022
@BewareMyPower BewareMyPower added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants