未验证 提交 5b58d074 编写于 作者: O openharmony_ci 提交者: Gitee

!9563 系统事件查询规则条数变更用例适配

Merge pull request !9563 from chenxuihui/master
......@@ -996,13 +996,13 @@ describe('hiSysEventJsTest', function () {
/**
* @tc.number DFX_DFT_HiSysEvent_JS_2200
* @tc.name testHiSysEventApi22
* @tc.desc 验证调用query接口,可添加10条查询规则
* @tc.desc 验证调用query接口,可添加100条查询规则
*/
it('testHiSysEventApi22', 3, async function (done) {
console.info('testHiSysEventApi22 start')
try {
let msgArray = []
for (let i = 0; i < 10; i++) {
for (let i = 0; i < 100; i++) {
msgArray[i] = {
domain: "RELIABILITY",
names: ["SYS_FREEZE"],
......
......@@ -678,14 +678,14 @@ describe('hiSysEventErrcodeTest', function () {
/**
* @tc.number DFX_DFT_HiSysEvent_JS_4600
* @tc.name testHiSysEventApi46
* @tc.desc 验证调用query接口查询系统事件,查询规则个数超过10个,忽略此次系统事件的查询,错误码11200301。
* @tc.desc 验证调用query接口查询系统事件,查询规则个数超过100个,忽略此次系统事件的查询,错误码11200301。
*/
it('testHiSysEventApi46', 3, async function (done) {
console.info('testHiSysEventApi46 start')
setTimeout(() => {
try {
let msgArray = []
for (let i = 0; i < 11; i++) {
for (let i = 0; i < 101; i++) {
msgArray[i] = {
domain: "RELIABILITY",
names: ["STACK"],
......
......@@ -154,7 +154,7 @@ describe('hiSysEventSerTest', function () {
* @tc.name testHiSysEventBox23
* @tc.desc 验证调用subscribe接口,关闭hiview进程,抛出错误码11200003
*/
it('testHiSysEventBox09', 1, async function (done) {
it('testHiSysEventBox23', 1, async function (done) {
console.info('testHiSysEventBox23 start')
try {
hiSysEvent.subscribe([{
......@@ -176,7 +176,7 @@ describe('hiSysEventSerTest', function () {
* @tc.name testHiSysEventBox24
* @tc.desc 验证调用unsubscribe接口,关闭hiview进程,抛出错误码11200003
*/
it('testHiSysEventBox09', 1, async function (done) {
it('testHiSysEventBox24', 1, async function (done) {
console.info('testHiSysEventBox24 start')
try {
hiSysEvent.unsubscribe();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册