Skip to content
Permalink
Browse files

[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 f08455cc7946cc784149ea9e2ebda256ace600f1
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/test/java/hudson/remoting/RmiTestBase.java
@@ -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) {

0 comments on commit f08455c

Please sign in to comment.
You can’t perform that action at this time.