diff --git a/storage/storagefileiov9jstest/src/main/js/test/members/close.test.js b/storage/storagefileiov9jstest/src/main/js/test/members/close.test.js index a40a3905d9ae2bb9a5ec8053700b57e348c3f988..7b232362fd9f8254f9ebdb335b716a9612be1e6c 100644 --- a/storage/storagefileiov9jstest/src/main/js/test/members/close.test.js +++ b/storage/storagefileiov9jstest/src/main/js/test/members/close.test.js @@ -156,7 +156,7 @@ describe('fileIO_fs_close', function () { expect(false).assertTrue(); } catch (e) { console.log('fileIO_test_close_sync_005 has failed for ' + e.message + ', code: ' + e.code); - expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue(); + expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue(); } }); @@ -367,7 +367,7 @@ describe('fileIO_fs_close', function () { expect(false).assertTrue(); } catch (e) { console.log('fileIO_test_close_async_007 has failed for ' + e.message + ', code: ' + e.code); - expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue(); + expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue(); done(); } }); diff --git a/storage/storagefileiov9jstest/src/main/js/test/members/read.test.js b/storage/storagefileiov9jstest/src/main/js/test/members/read.test.js index 378915fd45b21cc35dafff14596626011a20366c..ffae4076b1a3325c159d28dcf52f98b5ecbb6234 100644 --- a/storage/storagefileiov9jstest/src/main/js/test/members/read.test.js +++ b/storage/storagefileiov9jstest/src/main/js/test/members/read.test.js @@ -297,7 +297,7 @@ export default function fileIORead() { expect(false).assertTrue(); } catch (e) { console.log('fileIO_test_read_sync_009 has failed for ' + e.message + ', code: ' + e.code); - expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue(); + expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue(); } }); @@ -732,7 +732,7 @@ export default function fileIORead() { expect(false).assertTrue(); } catch (e) { console.log('fileIO_test_read_async_012 has failed for ' + e.message + ', code: ' + e.code); - expect(e.code == 13900008 && e.message == 'Bad file descriptor').assertTrue(); + expect(e.code == 13900020 && e.message == 'Invalid argument').assertTrue(); done(); } }); @@ -752,7 +752,7 @@ export default function fileIORead() { fileIO.read(-1, new ArrayBuffer(4096), (err) => { if(err) { console.log('fileIO_test_read_async_013 error: {message: ' + err.message + ', code: ' + err.code + '}'); - expect(err.code == 13900008 && err.message == 'Bad file descriptor').assertTrue(); + expect(err.code == 13900020 && err.message == 'Invalid argument').assertTrue(); done(); } });