Skip to content

Commit

Permalink
chore: remove excessive resource-consuming tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Jul 12, 2024
1 parent 1d60d76 commit 16101a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
20 changes: 0 additions & 20 deletions pkg/database/mongodb/collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,26 +133,6 @@ func TestCollection_Drop(t *testing.T) {
databasetest.TestCollection_Drop(t, coll)
}

func BenchmarkCollection_InsertOne(b *testing.B) {
server := Server()
defer ReleaseServer(server)

coll, err := testCollection(server)
assert.NoError(b, err)

databasetest.BenchmarkCollection_InsertOne(b, coll)
}

func BenchmarkCollection_InsertMany(b *testing.B) {
server := Server()
defer ReleaseServer(server)

coll, err := testCollection(server)
assert.NoError(b, err)

databasetest.BenchmarkCollection_InsertMany(b, coll)
}

func BenchmarkCollection_UpdateOne(b *testing.B) {
server := Server()
defer ReleaseServer(server)
Expand Down
9 changes: 0 additions & 9 deletions pkg/database/mongodb/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,3 @@ func TestServerAndRelease(t *testing.T) {

ReleaseServer(server)
}

func BenchmarkServerAndRelease(b *testing.B) {
b.RunParallel(func(p *testing.PB) {
for p.Next() {
server := Server()
ReleaseServer(server)
}
})
}

0 comments on commit 16101a8

Please sign in to comment.