mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
Clean up JUnit assertions (#5314)
This commit is contained in:
1 parent
e4bbb27b9e
commit
9cf3f73abd
35 files changed
+82
-70
No files matched your search
@@ -36,6 +36,7 @@ import jenkins.security.MasterToSlaveCallable;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -63,7 +64,7 @@ public class LauncherTest {
|
||||
Thread.sleep(100);
|
||||
long start = System.currentTimeMillis();
|
||||
p.kill();
|
||||
assertTrue(p.join()!=0);
|
||||
assertNotEquals(0, p.join());
|
||||
long end = System.currentTimeMillis();
|
||||
long terminationTime = end - start;
|
||||
assertTrue("Join did not finish promptly. The completion time (" + terminationTime + "ms) is longer than expected 15s", terminationTime < 15000);
|
||||
|
||||
Reference in new issue
Block a user