From f45f5aa9a44c0ce17508387269e20ab74ffc1bdb Mon Sep 17 00:00:00 2001 From: coderzc Date: Wed, 22 Nov 2023 16:54:43 +0800 Subject: [PATCH] Fix MiniKubeTest.testJobCancelled --- .../java/org/apache/hugegraph/computer/k8s/MiniKubeTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/computer-test/src/main/java/org/apache/hugegraph/computer/k8s/MiniKubeTest.java b/computer-test/src/main/java/org/apache/hugegraph/computer/k8s/MiniKubeTest.java index 8b630ba8a..77161b415 100644 --- a/computer-test/src/main/java/org/apache/hugegraph/computer/k8s/MiniKubeTest.java +++ b/computer-test/src/main/java/org/apache/hugegraph/computer/k8s/MiniKubeTest.java @@ -246,6 +246,7 @@ public void testJobCancelled() { jobState.jobStatus(JobStatus.INITIALIZING); Mockito.verify(jobObserver, Mockito.timeout(15000L).atLeast(1)) .onJobStateChanged(Mockito.eq(jobState)); + Mockito.clearInvocations(jobObserver); this.driver.cancelJob(jobId, params);