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

off

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