shawenguan 2 жил өмнө
parent
commit
260fc062ac

+ 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;