Skip to content

Commit

Permalink
fix test_notebook_document__did_change: need to wait for 2 calls to d…
Browse files Browse the repository at this point in the history
…iagnostics notification since the first call is a n empty diagnostics for the closed cell
  • Loading branch information
tkrabel-db committed Jul 24, 2023
1 parent ce9f458 commit 5434d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_notebook_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def test_notebook_document__did_change(
},
},
)
wait_for_condition(lambda: mock_notify.call_count >= 1)
wait_for_condition(lambda: mock_notify.call_count >= 2)
assert len(server.workspace.documents) == 2
assert "cell_2_uri" not in server.workspace.documents
assert len(server.workspace.get_document("notebook_uri").cells) == 1
Expand Down

0 comments on commit 5434d1f

Please sign in to comment.