mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
Use assertLogNotContains to verify that logs do not contain sleep process.
This commit is contained in:
1 parent
9ac68b92dc
commit
0826f09f99
1 file changed
+1
-5
@@ -47,11 +47,7 @@ public class ProcessTreeKillerTest extends HudsonTestCase {
|
||||
|
||||
processJob.getBuildersList().add(new Shell("ps -ef | grep sleep"));
|
||||
|
||||
String log = processJob.scheduleBuild2(0).get().getLog();
|
||||
|
||||
System.err.println("LOGS: " + log);
|
||||
|
||||
assertFalse("Did not properly kill task", log.contains("sleep 100000"));
|
||||
assertLogNotContains("sleep 100000", processJob.scheduleBuild2(0).get());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user