Skip to content

Commit

Permalink
Merge pull request #3419 from dwnusbaum/JENKINS-9104-test-fix
Browse files Browse the repository at this point in the history
Fix test failure by cleaning up static state after tests
  • Loading branch information
jglick committed May 2, 2018
2 parents ddbc4bb + 828a7e0 commit 3465da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/util/ProcessTree.java
Expand Up @@ -382,7 +382,7 @@ public interface ProcessCallable<T> extends Serializable {
}


private static Boolean vetoersExist;
/* package */ static Boolean vetoersExist;

/**
* Gets the {@link ProcessTree} of the current system
Expand Down
1 change: 1 addition & 0 deletions test/src/test/java/hudson/util/ProcessTreeKillerTest.java
Expand Up @@ -38,6 +38,7 @@ public class ProcessTreeKillerTest {

@After
public void tearDown() throws Exception {
ProcessTree.vetoersExist = null;
if (null != process)
process.destroy();
}
Expand Down

0 comments on commit 3465da4

Please sign in to comment.