chiark / gitweb /
Testing: Move expect_before timeout to right place
[cgi-auth-flexible.git] / tests / autotest
index f2b2870665fcc91a70234744b76df552331ba6d2..60ef3ffce6357007db3af862c2a4affcd27fbdbb 100755 (executable)
@@ -31,9 +31,7 @@ proc timeout-abort {} {
      send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
      error "aborting due to timeout"
 }
-set timeout 15
-
-expect_after timeout timeout-abort
+set timeout 10
 
 proc elog {args} {
      set m "[list expect [lindex $args end]]"
@@ -57,6 +55,8 @@ proc dospawn {} {
      spawn -nottycopy \
      w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
 
+     expect_after timeout timeout-abort
+
      epage {You need to log in}
 }