Skip to content

Commit

Permalink
Fix copy/paste typo in mongo.tmpl (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderilyin authored Sep 15, 2024
1 parent 68fe8dd commit a0b774b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/template/dbdriver/files/tests/mongo.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ func mustStartMongoContainer() (func(context.Context) error, error) {
func TestMain(m *testing.M) {
teardown, err := mustStartMongoContainer()
if err != nil {
log.Fatalf("could not start postgres container: %v", err)
log.Fatalf("could not start mongodb container: %v", err)
}

m.Run()

if teardown != nil && teardown(context.Background()) != nil {
log.Fatalf("could not teardown postgres container: %v", err)
log.Fatalf("could not teardown mongodb container: %v", err)
}
}

Expand Down

0 comments on commit a0b774b

Please sign in to comment.