shawenguan 2 年 前
コミット
260fc062ac
1 ファイル変更1 行追加5 行削除
  1. 1 5
      Scripts/jhsh/jhshHelper.js

+ 1 - 5
Scripts/jhsh/jhshHelper.js

@@ -68,15 +68,11 @@ if (!lk.isExecComm) {
 async function doTest(){
     startTime = new Date().getTime();
     lk.log('start='+startTime);
-    await testWait();
+    await lk.wait(3000);
     lk.log('pass='+(new Date().getTime() - startTime));
     lk.done();
 }
 
-async function testWait(){
-    return new Promise((resolve) => setTimeout(resolve, 3000))
-}
-
 function checkHandleRequest() {
     const url = $request.url;
     const path = $request.path;