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
@@ -1,6 +1,7 @@
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from utils import wait_for, sync_blockheight, COMPAT
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -116,6 +117,7 @@ def test_max_channel_id(node_factory, bitcoind):
|
||||
|
||||
|
||||
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
|
||||
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
|
||||
def test_scid_upgrade(node_factory):
|
||||
|
||||
# Created through the power of sed "s/X'\([0-9]*\)78\([0-9]*\)78\([0-9]*\)'/X'\13A\23A\3'/"
|
||||
|
||||
Reference in New Issue
Block a user