mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 21:27:46 +00:00
[tcp] extend test to cover otTcpStopListening API (#8133)
Make sure `otTcpStopListening` is verified.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user