@@ -236,20 +236,19 @@ def test_collections_w_read_time(client, cleanup, database):
236236 cleanup (second_document .delete )
237237 second_document .create (data )
238238
239- # We're just testing that we added one collection at read_time, not two.
240- collections = list (client .collections (read_time = read_time ))
241- assert len (collections ) == num_collections
242- ids = [collection .id for collection in collections ]
243- assert second_collection_id not in ids
244- assert first_collection_id in ids
245-
246239 # Test that listing current collections does have the second id.
247240 curr_collections = list (client .collections ())
248- assert len (curr_collections ) == num_collections + 1
241+ assert len (curr_collections ) > num_collections
249242 ids = [collection .id for collection in curr_collections ]
250243 assert second_collection_id in ids
251244 assert first_collection_id in ids
252245
246+ # We're just testing that we added one collection at read_time, not two.
247+ collections = list (client .collections (read_time = read_time ))
248+ ids = [collection .id for collection in collections ]
249+ assert second_collection_id not in ids
250+ assert first_collection_id in ids
251+
253252
254253@pytest .mark .parametrize ("database" , [None , FIRESTORE_OTHER_DB ], indirect = True )
255254def test_create_document (client , cleanup , database ):
0 commit comments