Skip to content

Commit

Permalink
Detect GitHub Actions as continuous integration (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored and sethmlarson committed Apr 11, 2020
1 parent 8e1fe6c commit 5777ec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/__init__.py
Expand Up @@ -36,7 +36,9 @@
# 3. To test our timeout logic by using two different values, eg. by using different
# values at the pool level and at the request level.
SHORT_TIMEOUT = 0.001
LONG_TIMEOUT = 0.5 if os.environ.get("CI") else 0.01
LONG_TIMEOUT = 0.01
if os.environ.get("CI") or os.environ.get("GITHUB_ACTIONS") == "true":
LONG_TIMEOUT = 0.5


def _can_resolve(host):
Expand Down

0 comments on commit 5777ec4

Please sign in to comment.