Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5434d1f

Browse files
committedJul 24, 2023
fix test_notebook_document__did_change: need to wait for 2 calls to diagnostics notification since the first call is a n empty diagnostics for the closed cell
1 parent ce9f458 commit 5434d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/test_notebook_document.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_notebook_document__did_change(
340340
},
341341
},
342342
)
343-
wait_for_condition(lambda: mock_notify.call_count >= 1)
343+
wait_for_condition(lambda: mock_notify.call_count >= 2)
344344
assert len(server.workspace.documents) == 2
345345
assert "cell_2_uri" not in server.workspace.documents
346346
assert len(server.workspace.get_document("notebook_uri").cells) == 1

0 commit comments

Comments
 (0)
Please sign in to comment.