From 18ae326e47d003718ac447ce1c467aa5a1cb6536 Mon Sep 17 00:00:00 2001 From: JackyYangPassion Date: Mon, 26 Aug 2024 09:10:32 +0800 Subject: [PATCH] enhance --- .../src/main/java/org/apache/hugegraph/core/TaskCoreTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/TaskCoreTest.java b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/TaskCoreTest.java index 6f0e7be4a5..da059ee85c 100644 --- a/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/TaskCoreTest.java +++ b/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/core/TaskCoreTest.java @@ -552,7 +552,7 @@ public void testGremlinJobAndCancel() throws TimeoutException { HugeTask task = runGremlinJob("Thread.sleep(1000 * 10);"); - sleepAWhile(); + sleepAWhile(200 * 6); task = scheduler.task(task.id()); scheduler.cancel(task); @@ -686,7 +686,7 @@ private HugeTask runGremlinJob(String gremlin) { } private static void sleepAWhile() { - sleepAWhile(1000); + sleepAWhile(100); } private static void sleepAWhile(long ms) {