You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Rename function for isolated database connection
Other ways to clean the database in tests will be added soon, so the tests are being moved to a separate file.
This commit is contained in:
@ -31,7 +31,7 @@ type TestingT interface {
|
||||
Failed() bool
|
||||
}
|
||||
|
||||
func New(t TestingT) *Postgres {
|
||||
func NewWithIsolatedDatabase(t TestingT) *Postgres {
|
||||
return newPostgres(t).cloneFromReference()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user