diff --git a/storage/storagefileiojstest/src/main/js/test/FileIO.test.js b/storage/storagefileiojstest/src/main/js/test/FileIO.test.js index 2fd0eace9c4a2f2ffb2f2e5682f862e14f6a9f52..2edd2c2efdac7015fa79f6e627cf6fa354e62221 100644 --- a/storage/storagefileiojstest/src/main/js/test/FileIO.test.js +++ b/storage/storagefileiojstest/src/main/js/test/FileIO.test.js @@ -3682,7 +3682,7 @@ export default function fileIOTest() { catch (err) { fileio.unlinkSync(fpath); console.info('fileio_test_fchown_sync_002 has failed for ' + err); - expect(err.message == "Operation not permitted").assertTrue(); + expect(err.message == "Invalid owner").assertTrue(); } }); @@ -3752,7 +3752,7 @@ export default function fileIOTest() { fileio.closeSync(fd); fileio.unlinkSync(fpath); console.info('fileio_test_fchown_sync_005 has failed for ' + err); - expect(err.message == "Operation not permitted").assertTrue(); + expect(err.message == "Invalid owner").assertTrue(); } }); diff --git a/storage/storagefileiojstest/src/main/js/test/module_fileio/members/fchown.test.js b/storage/storagefileiojstest/src/main/js/test/module_fileio/members/fchown.test.js index ce1a799951714319308bb1923880c389f1002ccf..268fd1cf05d7e0c008c4f60a020b56aa59970671 100644 --- a/storage/storagefileiojstest/src/main/js/test/module_fileio/members/fchown.test.js +++ b/storage/storagefileiojstest/src/main/js/test/module_fileio/members/fchown.test.js @@ -210,7 +210,7 @@ describe('fileio_fchown', async function () { fileio.fchownSync(fd, null, stat.gid); } catch (e) { console.info('fileio_test_fchown_sync_003 has failed for ' + e); - expect(e.message == "Operation not permitted").assertTrue(); + expect(e.message == "Invalid owner").assertTrue(); fileio.unlinkSync(fpath); } });