Commit 1b5ce525 authored by Max Richter's avatar Max Richter
Browse files

ci: remove db connection test

parent aab7a90e
Pipeline #1770 passed with stages
in 1 minute and 33 seconds
package mongo
import (
"testing"
"time"
repos "git.coco.study/fvitt/good2go/database/mongo/repositories"
utils "git.coco.study/fvitt/good2go/database/mongo/utils"
)
func TestMain(t *testing.T) {
// Create a mongodb client
client, ctx := utils.CreateDBClient(20 * time.Second)
defer client.Disconnect(ctx)
// Connect to a specified database
db := client.Database(utils.GetDBName())
// Connect the repositories
repos.RoomRepository.ConnectTo(db.Collection("rooms"))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment