提交 e6d823e3 编写于 作者: G gaoxi785

Mdns_off

Signed-off-by: Ngaoxi785 <gaoxi785@huawei.com>
上级 484c0e52
...@@ -809,6 +809,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -809,6 +809,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("discoveryStart");
}); });
...@@ -851,6 +852,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -851,6 +852,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("discoveryStop");
}); });
/** /**
...@@ -892,6 +894,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -892,6 +894,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("discoveryStart");
}); });
/** /**
...@@ -933,6 +936,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -933,6 +936,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("discoveryStop");
}); });
/** /**
...@@ -974,6 +978,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -974,6 +978,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("serviceFound");
}); });
/** /**
...@@ -1012,6 +1017,7 @@ export default function NetworkManagerMdnsTest() { ...@@ -1012,6 +1017,7 @@ export default function NetworkManagerMdnsTest() {
}, delayTime) }, delayTime)
} }
}); });
discoveryService.off("serviceLost");
}); });
/** /**
......
...@@ -108,7 +108,7 @@ export default function NetTCPSocketServerTest() { ...@@ -108,7 +108,7 @@ export default function NetTCPSocketServerTest() {
done(); done();
} catch (error) { } catch (error) {
console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`); console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`);
expect(error.code).assertEqual(401); expect(error.code == 401).assertTrue();
done(); done();
} }
}); });
...@@ -172,7 +172,7 @@ export default function NetTCPSocketServerTest() { ...@@ -172,7 +172,7 @@ export default function NetTCPSocketServerTest() {
done(); done();
} catch (error) { } catch (error) {
console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`); console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`);
expect(error.code).assertEqual(401); expect(error.code == 401).assertTrue();
done(); done();
return; return;
} }
...@@ -225,7 +225,7 @@ export default function NetTCPSocketServerTest() { ...@@ -225,7 +225,7 @@ export default function NetTCPSocketServerTest() {
done(); done();
} catch (error) { } catch (error) {
console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`); console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`);
expect(error.code).assertEqual(401); expect(error.code == 401).assertTrue();
done(); done();
return; return;
} }
...@@ -690,7 +690,7 @@ export default function NetTCPSocketServerTest() { ...@@ -690,7 +690,7 @@ export default function NetTCPSocketServerTest() {
}); });
} catch (error) { } catch (error) {
console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`); console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`);
ExpectFalse(); expect(error.code == 401).assertTrue();
done(); done();
return; return;
} }
...@@ -1305,7 +1305,7 @@ export default function NetTCPSocketServerTest() { ...@@ -1305,7 +1305,7 @@ export default function NetTCPSocketServerTest() {
done(); done();
} catch (error) { } catch (error) {
console.info(`${caseName} catch err, expect err: [${error.code}, ${error.message}]`); console.info(`${caseName} catch err, expect err: [${error.code}, ${error.message}]`);
expect(error.code).assertEqual(401); expect(error.code == 401).assertTrue();
done(); done();
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册