[tcp] extend test to cover otTcpStopListening API (#8133)

Make sure `otTcpStopListening` is verified.
This commit is contained in:
Eduardo Montoya
2022-09-09 20:20:28 -07:00
committed by GitHub
parent 4311d1931a
commit 865727adc8
+11
View File
@@ -42,6 +42,17 @@ expect_line "Done"
set addr_2 [get_ipaddr mleid]
send "tcp listen :: 30000\n"
expect_line "Done"
send "tcp stoplistening\n"
expect_line "Done"
switch_node 1
send "tcp connect $addr_2 30000\n"
expect_line "Done"
expect "TCP: Connection refused"
switch_node 2
send "tcp listen :: 30000\n"
expect_line "Done"
switch_node 1
set addr_1 [get_ipaddr mleid]