We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f718d62 commit 0102d89Copy full SHA for 0102d89
firestore/cloud-client/distributed_counters_test.py
@@ -47,3 +47,15 @@ def test_distributed_counters(fs_client):
47
counter.increment_counter(doc_ref)
48
49
assert counter.get_count(doc_ref) == 2
50
+
51
52
+def test_distributed_counters_cleanup(fs_client):
53
+ col = fs_client.collection("dc_samples")
54
+ doc_ref = col.document("distributed_counter")
55
56
+ shards = doc_ref.collection("shards").list_documents()
57
+ shards_list = [shard for shard in shards]
58
+ for shard in shards_list:
59
+ shard.delete()
60
61
+ doc_ref.delete()
0 commit comments