You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/07/26 06:22:55 UTC
[shardingsphere-elasticjob] branch master updated: Avoid NPE log on
DaemonTaskSchedulerTest#assertInit test case (#1271)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 03fe24a Avoid NPE log on DaemonTaskSchedulerTest#assertInit test case (#1271)
03fe24a is described below
commit 03fe24a7e693da19a17a7b685e66fd433b1799e7
Author: Rudy Steiner <ru...@163.com>
AuthorDate: Sun Jul 26 14:22:47 2020 +0800
Avoid NPE log on DaemonTaskSchedulerTest#assertInit test case (#1271)
---
.../elasticjob/cloud/executor/prod/DaemonTaskSchedulerTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/elasticjob-cloud/elasticjob-cloud-executor/src/test/java/org/apache/shardingsphere/elasticjob/cloud/executor/prod/DaemonTaskSchedulerTest.java b/elasticjob-cloud/elasticjob-cloud-executor/src/test/java/org/apache/shardingsphere/elasticjob/cloud/executor/prod/DaemonTaskSchedulerTest.java
index 555e25a..8b5fd31 100755
--- a/elasticjob-cloud/elasticjob-cloud-executor/src/test/java/org/apache/shardingsphere/elasticjob/cloud/executor/prod/DaemonTaskSchedulerTest.java
+++ b/elasticjob-cloud/elasticjob-cloud-executor/src/test/java/org/apache/shardingsphere/elasticjob/cloud/executor/prod/DaemonTaskSchedulerTest.java
@@ -117,6 +117,7 @@ public final class DaemonTaskSchedulerTest {
Field field = DaemonTaskScheduler.class.getDeclaredField("RUNNING_SCHEDULERS");
field.setAccessible(true);
assertTrue(((ConcurrentHashMap) field.get(scheduler)).containsKey(taskId.getValue()));
+ DaemonTaskScheduler.shutdown(taskId);
}
@Test