未验证 提交 2e076332 编写于 作者: 高曦 提交者: Gitee

update HttpJsunit.test.ets.

Signed-off-by: N高曦 <gaoxi785@huawei.com>
上级 7978461e
......@@ -210,9 +210,9 @@ export default function httpJsunit() {
Test(http.createHttp(),socket.constructTCPSocketInstance(),socket.constructUDPSocketInstance());
function Test(httpRequest :HttpRequest,tcpSocket:TCPSocket,udpSocket:UDPSocket){
except(httpRequest != null).assertTrue();
except(tcpSocket != null).assertTrue();
except(udpSocket != null).assertTrue();
expect(httpRequest != null).assertTrue();
expect(tcpSocket != null).assertTrue();
expect(udpSocket != null).assertTrue();
httpRequest.destroy();
tcpSocket.close();
udpSocket.close();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册