From 5b3af00e28b8164e5e4803bf0f5301ea59a5249d Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 21 Dec 2020 15:06:07 +0100 Subject: [PATCH] pytest: Really only check DB statements if the env-var is "1" --- tests/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index 8a7e9c249..c5a9aefad 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -19,7 +19,7 @@ class LightningNode(utils.LightningNode): # If we opted into checking the DB statements we will attach the dblog # 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") if db == 'sqlite3' and check_dblog: dblog = os.path.join(os.path.dirname(__file__), 'plugins', 'dblog.py')