mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 13:40:06 +00:00
[test] move expect timeout settings to _common.exp (#5242)
This moves all settings of timeout to one place. Also changes the default timeout to 10 seconds, can probably solve the occasional timeout when dataset commit active.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
proc wait_for {command expected} {
|
||||
set result 0
|
||||
set timeout 1
|
||||
for {set i 0} {$i < 20} {incr i} {
|
||||
if {$command != ""} {
|
||||
send "$command\n"
|
||||
@@ -67,3 +68,5 @@ proc dispose {} {
|
||||
send "\x04"
|
||||
expect eof
|
||||
}
|
||||
|
||||
set timeout 10
|
||||
|
||||
Reference in New Issue
Block a user