File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,13 @@ def test_list_entities():
276276 entities_list_response = method .entities .list ({'from_date' : from_date })
277277 entities_list_response = [entity ['id' ] for entity in entities_list_response ]
278278
279+ # The entity might not appear immediately due to indexing delays
280+ # Check if it's in the list, or verify we can retrieve it directly
279281 if entities_create_response ['id' ] not in entities_list_response :
280- retrieved_entity = method .entities .get (entities_create_response ['id' ])
282+ # Verify the entity exists by retrieving it directly
283+ retrieved_entity = method .entities .retrieve (entities_create_response ['id' ])
281284 assert retrieved_entity ['id' ] == entities_create_response ['id' ]
285+ # Entity exists but not in list yet - this is acceptable due to eventual consistency
282286 else :
283287 assert entities_create_response ['id' ] in entities_list_response
284288
You can’t perform that action at this time.
0 commit comments