mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-10 10:34:10 +02:00
Longer delay to hopefully get test to pass, refs #364
This commit is contained in:
parent
e6ae643497
commit
046e5246c9
1 changed files with 2 additions and 2 deletions
|
|
@ -482,11 +482,11 @@ def test_insert_streaming_batch_size_1(db_path):
|
||||||
proc.stdin.write(b'{"name": "Azi"}\n')
|
proc.stdin.write(b'{"name": "Azi"}\n')
|
||||||
proc.stdin.flush()
|
proc.stdin.flush()
|
||||||
# Without this delay the data wasn't yet visible
|
# Without this delay the data wasn't yet visible
|
||||||
time.sleep(0.2)
|
time.sleep(0.4)
|
||||||
assert list(Database(db_path)["rows"].rows) == [{"name": "Azi"}]
|
assert list(Database(db_path)["rows"].rows) == [{"name": "Azi"}]
|
||||||
proc.stdin.write(b'{"name": "Suna"}\n')
|
proc.stdin.write(b'{"name": "Suna"}\n')
|
||||||
proc.stdin.flush()
|
proc.stdin.flush()
|
||||||
time.sleep(0.2)
|
time.sleep(0.4)
|
||||||
assert list(Database(db_path)["rows"].rows) == [{"name": "Azi"}, {"name": "Suna"}]
|
assert list(Database(db_path)["rows"].rows) == [{"name": "Azi"}, {"name": "Suna"}]
|
||||||
proc.stdin.close()
|
proc.stdin.close()
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue