提交 bf011cd1 编写于 作者: Z zhuhongtao666

bugfix_fix_code

Signed-off-by: Nzhuhongtao666 <zhuhongtao12@huawei.com>
上级 6f976da7
......@@ -81,8 +81,8 @@ describe('securitylabel', function () {
it('securitylabel_test_set_security_label_sync_002', 0, async function () {
try {
let result = securityLabel.setSecurityLabelSync("/data/aaa.txt", "s0");
expect(result.code == -1).assertTrue();
} catch (e) {
expect(result.message == "No such file or directory").assertTrue();
} catch (err) {
console.log('securitylabel_test_set_security_label_sync_002 has failed for ' + err);
}
});
......@@ -291,7 +291,7 @@ describe('securitylabel', function () {
await securityLabel.setSecurityLabel('/data/test.txt', 's0');
} catch (err) {
console.log('securitylabel_test_set_security_label_async_006 has failed for ' + err);
expect(err.code == -1).assertTrue();
expect(err.message == "No such file or directory").assertTrue();
done();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册