From 046e5246c9698a6fc9901ca265ae47c68fcf5d13 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 9 Jan 2022 20:51:07 -0800 Subject: [PATCH] Longer delay to hopefully get test to pass, refs #364 --- tests/test_cli_insert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cli_insert.py b/tests/test_cli_insert.py index 3ef6ffe..346bb38 100644 --- a/tests/test_cli_insert.py +++ b/tests/test_cli_insert.py @@ -482,11 +482,11 @@ def test_insert_streaming_batch_size_1(db_path): proc.stdin.write(b'{"name": "Azi"}\n') proc.stdin.flush() # 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"}] proc.stdin.write(b'{"name": "Suna"}\n') proc.stdin.flush() - time.sleep(0.2) + time.sleep(0.4) assert list(Database(db_path)["rows"].rows) == [{"name": "Azi"}, {"name": "Suna"}] proc.stdin.close() proc.wait()