提交 759f3bc4 编写于 作者: G gaoxi785

off

Signed-off-by: Ngaoxi785 <gaoxi785@huawei.com>
上级 e6d823e3
......@@ -801,6 +801,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(startSearching_status).assertEqual(true);
discoveryService.off("discoveryStart");
done();
}, delayTime)
}
......@@ -809,7 +810,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("discoveryStart");
});
......@@ -844,6 +844,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(stopSearching_status).assertEqual(true);
discoveryService.off("discoveryStop");
done();
}, delayTime)
}
......@@ -852,7 +853,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("discoveryStop");
});
/**
......@@ -886,6 +886,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(startSearching_status).assertEqual(true);
discoveryService.off("discoveryStart");
done();
}, delayTime)
}
......@@ -894,7 +895,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("discoveryStart");
});
/**
......@@ -928,6 +928,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(stopSearching_status).assertEqual(true);
discoveryService.off("discoveryStop");
done();
}, delayTime)
}
......@@ -936,7 +937,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("discoveryStop");
});
/**
......@@ -970,6 +970,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(found_status).assertEqual(true);
discoveryService.off("serviceFound");
done();
}, delayTime)
}
......@@ -978,7 +979,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("serviceFound");
});
/**
......@@ -1010,6 +1010,7 @@ export default function NetworkManagerMdnsTest() {
expect(err).assertEqual(undefined);
setTimeout(() => {
expect(lost_status).assertEqual(true);
discoveryService.off("serviceLost");
done();
}, delayTime)
}
......@@ -1017,7 +1018,6 @@ export default function NetworkManagerMdnsTest() {
}, delayTime)
}
});
discoveryService.off("serviceLost");
});
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册