remember to shutdown logger, finally fix that pesky test
This commit is contained in:
parent
e7059a36c6
commit
32499676d9
2 changed files with 4 additions and 3 deletions
|
|
@ -60,7 +60,8 @@ public class JobServServer {
|
|||
@Override
|
||||
public void run() {
|
||||
logger.write("Shutting down server");
|
||||
manager.shutdown();
|
||||
logger.shutdown();
|
||||
manager.shutdown();
|
||||
JobServServer.this.stop();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ class ProcessManagerTestImplementation extends ProcessManager {
|
|||
super.getLock(pid);
|
||||
System.err.println("[1] Long Call Has Lock");
|
||||
|
||||
// hold lock for 7 seconds, more than double normal timeout.
|
||||
Thread.sleep(4000);
|
||||
// hold lock for 3.5 seconds, more than double normal timeout.
|
||||
Thread.sleep(3500);
|
||||
|
||||
super.releaseLock(pid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue