@@ -15,7 +15,7 @@ def run_query_in_new_process(tmp_path: Path, build_dir: Path, queries: str):
1515 sys.path.append(r"{ build_dir !s} ")
1616
1717 import ladybug as lb
18- db = lb.Database(r"{ db_path !s} ")
18+ db = lb.Database(r"{ db_path !s} ", max_db_size=1 << 30 )
1919 """ ) + queries
2020 return subprocess .Popen ([sys .executable , "-c" , code ])
2121
@@ -40,7 +40,7 @@ def test_replay_after_kill(tmp_path: Path, build_dir: Path) -> None:
4040 """ )
4141 run_query_then_kill (tmp_path , build_dir , queries )
4242 db_path = get_db_file_path (tmp_path )
43- with lb .Database (db_path ) as db , lb .Connection (db ) as conn :
43+ with lb .Database (db_path , max_db_size = 1 << 30 ) as db , lb .Connection (db ) as conn :
4444 # previously committed queries should be valid after replaying WAL
4545 result = conn .execute ("CALL show_tables() RETURN *" )
4646 assert result .has_next ()
@@ -64,7 +64,7 @@ def test_replay_with_exception(tmp_path: Path, build_dir: Path) -> None:
6464 """ )
6565 run_query_then_kill (tmp_path , build_dir , queries )
6666 db_path = get_db_file_path (tmp_path )
67- with lb .Database (db_path ) as db , lb .Connection (db ) as conn :
67+ with lb .Database (db_path , max_db_size = 1 << 30 ) as db , lb .Connection (db ) as conn :
6868 # previously committed queries should be valid after replaying WAL
6969 result = conn .execute ("match (t:tab) where t.id <= 5 return t.id" )
7070 assert result .get_num_tuples () == 5
0 commit comments