diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 699cb8638..209ec27ad 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -14,6 +14,7 @@ # along with this program. If not, see . import re, os, subprocess, datetime, textwrap, errno, sys, time, functools +CERT_SLEEP_TIME = 1 def timestamp(): """ @@ -485,6 +486,7 @@ def dummy_cert(certdir, ca, commonname): stdin=subprocess.PIPE ) if ret: return None + time.sleep(CERT_SLEEP_TIME) return certpath diff --git a/test/test_utils.py b/test/test_utils.py index 94523676a..874b2c6f4 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -2,6 +2,8 @@ import textwrap, cStringIO, os, time, re import libpry from libmproxy import utils +utils.CERT_SLEEP_TIME = 0 + class uformat_timestamp(libpry.AutoTree): def test_simple(self):