summaryrefslogtreecommitdiff
path: root/tests/support
diff options
context:
space:
mode:
Diffstat (limited to 'tests/support')
-rw-r--r--tests/support/server.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/support/server.tcl b/tests/support/server.tcl
index a65fa8d7e..b06bd73ba 100644
--- a/tests/support/server.tcl
+++ b/tests/support/server.tcl
@@ -505,6 +505,10 @@ proc start_server {options {code undefined}} {
close $fd
}
+ # We may have a stdout left over from the previous tests, so we need
+ # to get the current count of ready logs
+ set previous_ready_count [count_message_lines $stdout "Ready to accept"]
+
# We need a loop here to retry with different ports.
set server_started 0
while {$server_started == 0} {
@@ -585,7 +589,7 @@ proc start_server {options {code undefined}} {
while 1 {
# check that the server actually started and is ready for connections
- if {[count_message_lines $stdout "Ready to accept"] > 0} {
+ if {[count_message_lines $stdout "Ready to accept"] > $previous_ready_count} {
break
}
after 10