diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2014-11-11 18:37:30 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2014-11-11 18:38:20 +0300 |
commit | b04cb23ed597f4b2d2ee9301e627f786b49e7ded (patch) | |
tree | 4e602c510238b04f98dc84704a3108c4e65a0d8f /csync | |
parent | ced986e01041270cecf781d5daa82e9dfdb5ea2f (diff) |
t8.pl: fix the test for me
On localhost, the other file (the bigger one) was downloaded first
Diffstat (limited to 'csync')
-rwxr-xr-x | csync/tests/ownCloud/t8.pl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/csync/tests/ownCloud/t8.pl b/csync/tests/ownCloud/t8.pl index 4851f75d6..1a0557d7f 100755 --- a/csync/tests/ownCloud/t8.pl +++ b/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); |