From 37d6c6bead956f8a6bd3d7b839cf1d46421ea1d2 Mon Sep 17 00:00:00 2001 From: Storage sandboxing Date: Thu, 25 Nov 2021 19:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4storagefileiojstest=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E5=88=B0=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Storage sandboxing --- .../src/main/js/default/test/FileIO.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js b/storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js index 1f2440127..bd5be0cd1 100644 --- a/storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js +++ b/storage/storagefileiojstest/src/main/js/default/test/FileIO.test.js @@ -398,10 +398,10 @@ describe('fileIOTest', function () { try { let fd = fileio.openSync(fpath, 0o4002); expect(fd !== null).assertTrue(); - let fd_1 = fileio.openSync(fpath, 0o4002); - expect(fd_1 !== null).assertTrue(); + let fd2 = fileio.openSync(fpath, 0o4002); + expect(fd2 !== null).assertTrue(); expect(fileio.closeSync(fd) !== null).assertTrue(); - expect(fileio.closeSync(fd_1) !== null).assertTrue(); + expect(fileio.closeSync(fd2) !== null).assertTrue(); expect(fileio.unlinkSync(fpath) !== null).assertTrue(); done(); } -- GitLab