mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
24 lines
315 B
Go
24 lines
315 B
Go
package mongo
|
|
|
|
import (
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func setupMongoTest() (err error) {
|
|
return nil
|
|
}
|
|
|
|
func cleanupMongoTest() {
|
|
}
|
|
|
|
func TestMongoInitMongo(t *testing.T) {
|
|
err := setupMongoTest()
|
|
require.Nil(t, err)
|
|
|
|
_, err = GetMongoClient()
|
|
require.Nil(t, err)
|
|
|
|
cleanupMongoTest()
|
|
}
|