From 820d950fad1f499bbb17fd3748e1bcf0834c3227 Mon Sep 17 00:00:00 2001 From: lidanyang16 Date: Mon, 31 Oct 2022 14:33:19 +0800 Subject: [PATCH] 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