From 7a96827dcd1e5e4008ebd27ae97b777e1b0dc22d Mon Sep 17 00:00:00 2001 From: lidanyang16 Date: Mon, 31 Oct 2022 14:33:19 +0800 Subject: [PATCH] fixed 820d950 from https://gitee.com/Ldy_lidanyang/xts_acts/pulls/6264 Signed-off-by: lidanyang16 --- .../src/main/js/test/Subscribe_subscribeOnBodyState.js | 4 ++++ .../src/main/js/test/Subscribe_subscribeStepCounter.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeOnBodyState.js b/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeOnBodyState.js index 8bf4d029f..49a55e735 100644 --- a/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeOnBodyState.js +++ b/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeOnBodyState.js @@ -72,6 +72,10 @@ describe("SensorJsTest_sensor_32", function () { console.log('subscribeOnBodyState_SensorJsTest001 is completed'); } }); + setTimeout(() => { + sensor.unsubscribeOnBodyState(); + done(); + }, 1000); }) /* diff --git a/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeStepCounter.js b/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeStepCounter.js index e92edaceb..665b6c6aa 100644 --- a/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeStepCounter.js +++ b/sensors/sensor_standard/src/main/js/test/Subscribe_subscribeStepCounter.js @@ -72,6 +72,10 @@ describe("SensorJsTest_sensor_34", function () { console.log('subscribeStepCounter_SensorJsTest001 is completed'); } }); + setTimeout(() => { + sensor.unsubscribeStepCounter(); + done(); + }, 1000); }) /* -- GitLab