Commit 72c58b0d authored by Yang Tse's avatar Yang Tse
Browse files

test 1001 needs a small delay between client part execution and test

result file verifications to allow the test server to completely write
out all files
parent 6c89e1b3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -71,6 +71,9 @@ http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x http://%
<file name="log/1001">
test
</file>
<postcheck>
%SRCDIR/libtest/delay.pl 1
</postcheck>
</client>

# Verify data after the test has been "shot"

tests/libtest/delay.pl

0 → 100755
+16 −0
Original line number Diff line number Diff line
#!/usr/bin/env perl
# sleep for a number of seconds
if ( $#ARGV != 0 )
{
    print "Usage: $0 seconds\n";
    exit 1;
}
if ( $ARGV[0] =~ /(\d+)/ ) {
    sleep $1;
    exit 0;
}
else {
    print "Usage: $0 seconds\n";
    exit 1;
}