cleaner tests i thought
This commit is contained in:
@@ -17,8 +17,8 @@ type Mongo struct {
|
||||
db string
|
||||
}
|
||||
|
||||
func NewMongo() Mongo {
|
||||
opts := options.Client().ApplyURI(config.New().DBURI)
|
||||
func NewMongo(path string) Mongo {
|
||||
opts := options.Client().ApplyURI(path)
|
||||
c, err := mongo.NewClient(opts)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user