summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-10-21 11:59:16 +0100
committerMichael Allen <michael@michaelallen.io>2015-10-21 11:59:16 +0100
commit984ff133d360222906ff20f7431be9a70a212539 (patch)
tree611ef993dd3c37aeb510495ce58ddcb41563805c /test
parent13110aea3cf060d698a195ab123d912f42114f5f (diff)
downloadgit-sonar-984ff133d360222906ff20f7431be9a70a212539.tar.gz
git-sonar-984ff133d360222906ff20f7431be9a70a212539.zip
Fix tests broken by FETCH_TIME now being pushed in
Diffstat (limited to '')
-rwxr-xr-xtest-directories.sh3
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