Skip to content

Commit 37b9012

Browse files
authored
Merge pull request #919 from apdavison/chatty-tests
Attempt to remedy CircleCI timeouts
2 parents 028907e + 0f39577 commit 37b9012

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ jobs:
5555
# run tests!
5656
- run:
5757
name: run tests
58+
no_output_timeout: 20m
5859
command: |
5960
. venv/bin/activate
60-
nosetests -v --with-coverage --cover-package=neo
61+
nosetests -v --with-coverage --cover-package=neo --debug=neo.test
62+
# note that we use --debug to get output while downloading files
63+
# without this, CircleCI tends to time out because there's no output for a long time
6164

6265
- run:
6366
name: coveralls

neo/test/rawiotest/tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
from urllib.request import urlopen
1010

11+
logger = logging.getLogger("neo.test")
12+
1113

1214
def can_use_network():
1315
"""
@@ -57,7 +59,7 @@ def download_test_file(filename, localdir, url):
5759
distantfile = url + '/' + filename
5860

5961
if not os.path.exists(localfile):
60-
logging.info('Downloading %s here %s', distantfile, localfile)
62+
logger.info('Downloading %s here %s', distantfile, localfile)
6163
dist = urlopen(distantfile)
6264
with open(localfile, 'wb') as f:
6365
f.write(dist.read())

0 commit comments

Comments
 (0)