From ebce3ff6ba0bb608a843bb6f5d537359c98567da Mon Sep 17 00:00:00 2001 From: hagen-danswer Date: Tue, 3 Sep 2024 17:34:40 -0700 Subject: [PATCH] added wait for sync after creating document set in tests (#2319) --- .../integration/tests/permissions/test_doc_set_permissions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/tests/integration/tests/permissions/test_doc_set_permissions.py b/backend/tests/integration/tests/permissions/test_doc_set_permissions.py index a2601bf4e46..412b5d41fad 100644 --- a/backend/tests/integration/tests/permissions/test_doc_set_permissions.py +++ b/backend/tests/integration/tests/permissions/test_doc_set_permissions.py @@ -122,6 +122,10 @@ def test_doc_set_permissions_setup(reset: None) -> None: user_performing_action=curator, ) + DocumentSetManager.wait_for_sync( + document_sets_to_check=[valid_doc_set], user_performing_action=admin_user + ) + # Verify that the valid document set was created DocumentSetManager.verify( document_set=valid_doc_set,