From a6cd53b97c06e0fae4ba3371577ddc7121d14046 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 21 Jan 2019 16:22:30 -0500 Subject: [PATCH] test_Daemon.py uses /tmp for data_dir --- .travis.yml | 4 ++-- tests/unit/lbrynet_daemon/test_Daemon.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae8ed6f32..a7e9ecc36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,8 @@ jobs: - pip install git+https://github.com/lbryio/torba.git#egg=torba - pip install -e .[test] script: - - HOME=/tmp coverage run -p --source=lbrynet -m twisted.trial --reactor=asyncio tests.unit.analytics tests.unit.core tests.unit.cryptstream tests.unit.database tests.unit.dht tests.unit.lbryfilemanager tests.unit.lbrynet_daemon tests.unit.schema tests.unit.wallet tests.unit.components tests.unit.test_conf - #- HOME=/tmp coverage run -p --source=lbrynet -m twisted.trial --reactor=asyncio tests.unit.test_cli + - HOME=/tmp coverage run -p --source=lbrynet -m twisted.trial --reactor=asyncio tests.unit.core tests.unit.cryptstream tests.unit.database tests.unit.dht tests.unit.lbryfilemanager tests.unit.lbrynet_daemon tests.unit.schema tests.unit.wallet tests.unit.components tests.unit.test_conf + #- HOME=/tmp coverage run -p --source=lbrynet -m twisted.trial --reactor=asyncio tests.unit.analytics tests.unit.test_cli after_success: - coverage combine - bash <(curl -s https://codecov.io/bash) diff --git a/tests/unit/lbrynet_daemon/test_Daemon.py b/tests/unit/lbrynet_daemon/test_Daemon.py index 85be4a7c3..f0b889174 100644 --- a/tests/unit/lbrynet_daemon/test_Daemon.py +++ b/tests/unit/lbrynet_daemon/test_Daemon.py @@ -4,7 +4,6 @@ import json from twisted.internet import defer from twisted.trial import unittest -from lbrynet import conf from lbrynet.extras.compat import f2d from lbrynet.schema.decode import smart_decode from lbrynet.extras.daemon.storage import SQLiteStorage @@ -30,6 +29,7 @@ from tests.test_utils import is_android def get_test_daemon(conf: Config, with_fee=False): + conf.data_dir = '/tmp' rates = { 'BTCLBC': {'spot': 3.0, 'ts': test_utils.DEFAULT_ISO_TIME + 1}, 'USDBTC': {'spot': 2.0, 'ts': test_utils.DEFAULT_ISO_TIME + 2}