diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-27 10:45:42 +0000 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-27 10:45:42 +0000 |
commit | 47addd8b811e77f3be815fea56bcaeddd89edea0 (patch) | |
tree | 611ef993dd3c37aeb510495ce58ddcb41563805c /test-directories.sh | |
parent | 934f6fd5b317476e7680bfd07dc2b685b5c37c4d (diff) | |
parent | 225de5490a49e92ea34326226308159e93b6b80d (diff) | |
download | git-sonar-47addd8b811e77f3be815fea56bcaeddd89edea0.tar.gz git-sonar-47addd8b811e77f3be815fea56bcaeddd89edea0.zip |
Merge pull request #70 from hallzy/masterv0.5
Added feature that let's you specify how often to fetch
Diffstat (limited to 'test-directories.sh')
-rwxr-xr-x | test-directories.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test-directories.sh b/test-directories.sh index 86a441e..5dde303 100755 --- a/test-directories.sh +++ b/test-directories.sh @@ -63,12 +63,14 @@ test_record_timestamp_in_repo() { test_time_to_update_when_timestamp_is_old() { cd $scriptDir + FETCH_TIME="$((5 * 60))" # Fetch every 5 mins touch -A "-010000" "$(dot_git)/lastupdatetime" assertTrue time_to_update } test_not_time_to_update_when_just_recorded() { cd $scriptDir + FETCH_TIME="$((5 * 60))" # Fetch every 5 mins record_timestamp assertFalse time_to_update } @@ -77,6 +79,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 |