mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
pytest: Really only check DB statements if the env-var is "1"
This commit is contained in:
parent
94820ad559
commit
5b3af00e28
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class LightningNode(utils.LightningNode):
|
||||||
|
|
||||||
# If we opted into checking the DB statements we will attach the dblog
|
# If we opted into checking the DB statements we will attach the dblog
|
||||||
# plugin before starting the node
|
# plugin before starting the node
|
||||||
check_dblog = os.environ.get("TEST_CHECK_DBSTMTS", None) is not None
|
check_dblog = os.environ.get("TEST_CHECK_DBSTMTS", None) == "1"
|
||||||
db = os.environ.get("TEST_DB_PROVIDER", "sqlite3")
|
db = os.environ.get("TEST_DB_PROVIDER", "sqlite3")
|
||||||
if db == 'sqlite3' and check_dblog:
|
if db == 'sqlite3' and check_dblog:
|
||||||
dblog = os.path.join(os.path.dirname(__file__), 'plugins', 'dblog.py')
|
dblog = os.path.join(os.path.dirname(__file__), 'plugins', 'dblog.py')
|
||||||
|
|
Loading…
Add table
Reference in a new issue