Skip to content

Firestore: 'test_collection_add' flakes #7829

Description

@tseaver

From https://source.cloud.google.com/results/invocations/7deedac3-8b60-447d-bb5e-74a4a6653e57/targets/cloud-devrel%2Fclient-libraries%2Fgoogle-cloud-python%2Fpresubmit%2Ffirestore/log:

_____________________________test_collection_add______________________________client=<google.cloud.firestore_v1.client.Clientobjectat0x7fb9ca171ad0>cleanup=<built-inmethodappendoflistobjectat0x7fb9c7c0acb0>deftest_collection_add(client, cleanup):
collection1=client.collection("collek")
collection2=client.collection("collek", "shun", "child")
collection3=client.collection("collek", "table", "child")
explicit_doc_id="hula"+unique_resource_id("-")
>assertset(collection1.list_documents()) ==set()
Eassertset([<google....fb9c7c06290>]) ==set([])
EExtraitemsintheleftset:
E<google.cloud.firestore_v1.document.DocumentReferenceobjectat0x7fb9c7c06290>EFulldiff:
E-set([<google.cloud.firestore_v1.document.DocumentReferenceobjectat0x7fb9c7c06290>])
E+set([])

This test should be using a unique / name-mangled collection ID, in order to prevent collision with CI running for other PRs.

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the Firestore API.flakytestingtype: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions