Browse Source

t8.pl: fix the test for me

On localhost, the other file (the bigger one) was downloaded first
Olivier Goffart 11 years ago
parent
commit
b04cb23ed5
1 changed files with 3 additions and 4 deletions
  1. 3 4
      csync/tests/ownCloud/t8.pl

+ 3 - 4
csync/tests/ownCloud/t8.pl

@@ -127,10 +127,9 @@ glob_put( "$tmpdir2/*", "parallel" );
 
 csync();
 
-# We assume the smaller file finished first, blocking
-# the second file from being saved.
-assert( !-e localDir() . 'parallel/FILE.dat' );
-assert( -e localDir() . 'parallel/file.dat' );
+# only one file must exist
+assert( (!-e localDir() . 'parallel/FILE.dat' ) or (!-e localDir() . 'parallel/file.dat') );
+assert( (-e localDir() . 'parallel/FILE.dat' ) or (-e localDir() . 'parallel/file.dat') );
 
 cleanup();
 system("rm -r " . $tmpdir);