Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fabian Vitt
good2go
Commits
1b5ce525
Commit
1b5ce525
authored
Jun 03, 2020
by
Max Richter
Browse files
ci: remove db connection test
parent
aab7a90e
Pipeline
#1770
passed with stages
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
database/mongo/main_test.go
deleted
100644 → 0
View file @
aab7a90e
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"
))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment