mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-19 23:26:19 +08:00
fix(go): workflow errors fixes;
This commit is contained in:
@@ -3,6 +3,8 @@ package functions
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"github.com/gravitl/netmaker/db"
|
||||
"github.com/gravitl/netmaker/schema"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -23,6 +25,9 @@ var (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
db.InitializeDB(schema.ListModels()...)
|
||||
defer db.CloseDB()
|
||||
|
||||
database.InitializeDatabase()
|
||||
defer database.CloseDB()
|
||||
logic.CreateSuperAdmin(&models.User{
|
||||
|
Reference in New Issue
Block a user