[Pkg-owncloud-commits] [owncloud-client] 140/332: t1.pl: add a sleep to make sure the mtime of the files are different

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 21d7d8988ad58e8203f2c143a786ac8f3e266329
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Jun 26 13:11:47 2014 +0200

    t1.pl:  add a sleep to make sure the mtime of the files are different
    
    It could be that the files are changed in the same second if the previous
    sync was fast, and therefore the changes not detected.
---
 csync/tests/ownCloud/t1.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/csync/tests/ownCloud/t1.pl b/csync/tests/ownCloud/t1.pl
index 5834290..3e2ade5 100755
--- a/csync/tests/ownCloud/t1.pl
+++ b/csync/tests/ownCloud/t1.pl
@@ -123,6 +123,7 @@ assertLocalAndRemoteDir( '', 0);
 
 # The previous sync should have updated the etags, and this should NOT be a conflict
 printInfo( "Update the file again");
+system("sleep 1");
 system("echo more data >> " .  localDir() . "remoteToLocal1/kernelcrash.txt");
 system("echo corruption >> " .  localDir() . "remoteToLocal1/kraft_logo.gif");
 csync( );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list