remember to shutdown logger, finally fix that pesky test

This commit is contained in:
Aidan Hahn 2019-05-27 09:57:19 -07:00
parent e7059a36c6
commit 32499676d9
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 4 additions and 3 deletions

View file

@ -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();
}
});

View file

@ -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);