summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r--git/test/lib/helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index 40e34fe0..df94abde 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -8,6 +8,7 @@ import os
import sys
from git import Repo, Remote, GitCommandError, Git
from unittest import TestCase
+import time
import tempfile
import shutil
import cStringIO
@@ -191,6 +192,8 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
# On windows, this will fail ... we deal with failures anyway and default to telling the user to do it
try:
gd = Git().daemon(temp_dir, as_process=True)
+ # yes, I know ... fortunately, this is always going to work if sleep time is just large enough
+ time.sleep(0.5)
except Exception as err:
gd = None
# end