From d4a487f1fa4cc048f9ca50a3d47c4aa8d6dee8bd Mon Sep 17 00:00:00 2001 From: Claudio Bandera Date: Sun, 24 Apr 2016 17:09:59 +0200 Subject: Merge remote-tracking branch 'upstream/master' into hotfix/unittests --- test-directories.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test-directories.sh') diff --git a/test-directories.sh b/test-directories.sh index 1777e69..219a9f3 100755 --- a/test-directories.sh +++ b/test-directories.sh @@ -64,7 +64,8 @@ test_record_timestamp_in_repo() { test_time_to_update_when_timestamp_is_old() { cd $scriptDir - if [[ $OSTYPE == darwin* ]];then + FETCH_TIME="$((5 * 60))" # Fetch every 5 mins + if [[ $OSTYPE == darwin* ]];then touch -A "-010000" "$(dot_git)/lastupdatetime" else newtimestamp=$(date -d "now -1 hour" +%Y%m%d%H%M) @@ -75,6 +76,7 @@ test_time_to_update_when_timestamp_is_old() { test_not_time_to_update_when_just_recorded() { cd $scriptDir + FETCH_TIME="$((5 * 60))" # Fetch every 5 mins record_timestamp assertFalse time_to_update } @@ -83,6 +85,7 @@ test_time_to_update_when_no_timestamp() { cd_to_tmp git init --quiet + FETCH_TIME="$((5 * 60))" # Fetch every 5 mins time_to_update assertTrue time_to_update -- cgit v1.2.3