Skip to content

Commit

Permalink
allow more sqlite thread safety than the minimum we require
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Dec 22, 2022
1 parent 8bf2d2f commit 2f0e4ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/full_node/stores/test_block_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@pytest.mark.asyncio
async def test_block_store(tmp_dir, db_version, bt):
assert sqlite3.threadsafety == 1
assert sqlite3.threadsafety >= 1
blocks = bt.get_consecutive_blocks(10)

async with DBConnection(db_version) as db_wrapper, DBConnection(db_version) as db_wrapper_2:
Expand Down Expand Up @@ -282,7 +282,7 @@ def generator(i: int) -> SerializedProgram:

@pytest.mark.asyncio
async def test_get_blocks_by_hash(tmp_dir, bt, db_version):
assert sqlite3.threadsafety == 1
assert sqlite3.threadsafety >= 1
blocks = bt.get_consecutive_blocks(10)

async with DBConnection(db_version) as db_wrapper, DBConnection(db_version) as db_wrapper_2:
Expand Down Expand Up @@ -320,7 +320,7 @@ async def test_get_blocks_by_hash(tmp_dir, bt, db_version):

@pytest.mark.asyncio
async def test_get_block_bytes_in_range(tmp_dir, bt, db_version):
assert sqlite3.threadsafety == 1
assert sqlite3.threadsafety >= 1
blocks = bt.get_consecutive_blocks(10)

async with DBConnection(db_version) as db_wrapper_2:
Expand Down

0 comments on commit 2f0e4ca

Please sign in to comment.