diff --git a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java index d8db2a7187..ee7ec6ef27 100644 --- a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java +++ b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java @@ -682,9 +682,9 @@ public void dynamicPVC() throws Exception { @Test public void invalidPodGetsCancelled() throws Exception { - r.assertBuildStatus(Result.FAILURE, r.waitForCompletion(b)); + r.assertBuildStatus(Result.ABORTED, r.waitForCompletion(b)); r.assertLogContains("ERROR: Unable to create pod", b); - r.assertLogContains("ERROR: Queue task was cancelled", b); + r.assertLogContains("Queue task was cancelled", b); } @Issue("SECURITY-1646")