[go: nahoru, domu]

Skip to content

Commit

Permalink
test(firestore): Cleanup documents created during test run (#10188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh committed May 24, 2024
1 parent 2d4fc81 commit 727da30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firestore/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2478,10 +2478,15 @@ func TestIntegration_AggregationQueries(t *testing.T) {
{"weight": 7.1, "height": 93, "model": "C"},
{"weight": 8.2, "height": 93, "model": "A"},
}
docRefs := []*DocumentRef{}
for _, doc := range docs {
newDoc := coll.NewDoc()
docRefs = append(docRefs, newDoc)
h.mustCreate(newDoc, doc)
}
t.Cleanup(func() {
deleteDocuments(docRefs)
})

query := coll.Where("weight", ">=", 1)

Expand Down

0 comments on commit 727da30

Please sign in to comment.