From d678a1177821d9ef7fc113946ec38e7be5af34e0 Mon Sep 17 00:00:00 2001 From: mahaifeng Date: Fri, 16 Aug 2024 13:02:28 +0800 Subject: [PATCH] =?UTF-8?q?[filemanager]=E8=BE=93=E5=87=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=97=A5=E5=BF=97(write=20test=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager/get-file-system-manager.test.js | 3 ++- pages/API/get-file-system-manager/get-file-system-manager.uvue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 03249b0f..11602989 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -1308,7 +1308,8 @@ describe('ExtApi-FileManagerTest', () => { let bytesWritten = await getData("bytesWritten") let lastFailError = await getData("lastFailError") if(bytesWritten != 7){ - console.log('writeTest',lastFailError.errCode,lastFailError.errMsg,bytesWritten) + let writeData = await getData("writeData") + console.log('writeTest',lastFailError.errCode,lastFailError.errMsg,bytesWritten,writeData) } expect(bytesWritten).toEqual(7) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.uvue b/pages/API/get-file-system-manager/get-file-system-manager.uvue index 2ae9c050..72bce6dd 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.uvue +++ b/pages/API/get-file-system-manager/get-file-system-manager.uvue @@ -1092,13 +1092,14 @@ } console.log("success", res) this.bytesWritten = res.bytesWritten + this.lastFailError=new UniError('uni-fileSystemManager', 0,'writeTest success:'+ JSON.stringify(res)) }, fail: (res : IUniError) => { if (this.logAble) { this.log += 'writeTest fail:' + JSON.stringify(res) + '\n\n' } console.log('fail', res) - this.lastFailError=new UniError(res.errSubject, res.errCode, res.errMsg) + this.lastFailError=new UniError(res.errSubject, res.errCode,'writeTest:'+ res.errMsg) }, complete: (_) => { -- GitLab