Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def test_cross_document_deferred_action_refuses_complete_publication(
# Keep another old-document action and the later document's action in
# one undrained native batch. No intermediate screenshot can separate
# them; the original already-retained pending action must survive.
before_queued = len(session._pyq)
_perform(session, kind, "queued-alpha", pump=False)
session.page.wait_for_timeout(0)
_wait_for_queued_action(session, kind, after=before_queued)
assert len(session._pyq) == 1
assert session._pyq[0]["_oaflow_producer_doc"] == first_owner
observed = []
Expand Down
3 changes: 2 additions & 1 deletion packages/flow/tests/test_tx_induce.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ def _background_inserter() -> None:
time.sleep(0.005)

bg_thread = threading.Thread(target=_background_inserter, daemon=True)
rows_before = normalizing_server.count_rows()
bg_thread.start()
try:
rows_before = normalizing_server.count_rows()
pack = certify_lens_on_sandbox(
candidate,
sample_record={
Expand All @@ -907,6 +907,7 @@ def _background_inserter() -> None:
stop_bg.set()
bg_thread.join(timeout=3.0)

assert not bg_thread.is_alive(), "background inserts did not finish"
assert bg_counter["inserted"] >= 1
assert pack.lens.write_mode == "patch"
assert pack.sensitivity == 1.0
Expand Down
Loading