Skip to content

Commit

Permalink
docstore/mongodocstore: Make TestLowerCaseFields re-runnable (google#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vangent authored and ybourgery committed Jan 25, 2024
1 parent 3130713 commit 8d700d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docstore/drivertest/driverbenchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// RunBenchmarks runs benchmarks for docstore drivers.
func RunBenchmarks(b *testing.B, coll *docstore.Collection) {
defer coll.Close()
clearCollection(b, coll)
ClearCollection(b, coll)
b.Run("BenchmarkSingleActionPut", func(b *testing.B) {
benchmarkSingleActionPut(10, b, coll)
})
Expand All @@ -40,7 +40,7 @@ func RunBenchmarks(b *testing.B, coll *docstore.Collection) {
b.Run("BenchmarkActionListGet", func(b *testing.B) {
benchmarkActionListGet(100, b, coll)
})
clearCollection(b, coll)
ClearCollection(b, coll)
}

func benchmarkSingleActionPut(n int, b *testing.B, coll *docstore.Collection) {
Expand Down
1 change: 1 addition & 0 deletions docstore/mongodocstore/mongo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func TestLowercaseFields(t *testing.T) {
}
coll := docstore.NewCollection(dc)
defer coll.Close()
defer drivertest.ClearCollection(t, coll)

type S struct {
ID, F, G int
Expand Down

0 comments on commit 8d700d1

Please sign in to comment.