mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: Skip some tests that assume we have a sqlite3 db on postgres
These will not work since they touch the DB file itself. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
b89222f2d9
commit
efc4aa94a3
@@ -290,6 +290,7 @@ def test_async_rpcmethod(node_factory, executor):
|
||||
assert [r.result() for r in results] == [42] * len(results)
|
||||
|
||||
|
||||
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Only sqlite3 implements the db_write_hook currently")
|
||||
def test_db_hook(node_factory, executor):
|
||||
"""This tests the db hook."""
|
||||
dbfile = os.path.join(node_factory.directory, "dblog.sqlite3")
|
||||
|
||||
Reference in New Issue
Block a user