Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-38696] - Allow interactive mode for File Leak Detector in Rm…
…iTestBase
  • Loading branch information
oleg-nenashev committed Jul 7, 2017
1 parent 40fa6a1 commit f08455c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/hudson/remoting/RmiTestBase.java
Expand Up @@ -53,6 +53,14 @@ protected void setUp() throws Exception {

protected void tearDown() throws Exception {
channelRunner.stop(channel);

// If we run with File Leak Detector, it allows stopping the test and checking the detector's web UI
// TODO: Make it a part of the Generic remoting Test framework?
if (Boolean.getBoolean("remoting.test.interactive")) {
System.out.println("Interactive flag is set. Waiting til somebody interrupts the test. "
+ "If File Leak Detector Profile is enabled, you can find its UI in http://localhost:20000");
Thread.sleep(Long.MAX_VALUE);
}
}

/*package*/ void setChannelRunner(Class<? extends ChannelRunner> runner) {
Expand Down

0 comments on commit f08455c

Please sign in to comment.