fix tests

This commit is contained in:
Matthew R Kasun
2023-02-14 07:58:54 -05:00
parent 82cac8fa30
commit 65b31c1c04
9 changed files with 73 additions and 59 deletions

View File

@@ -4,13 +4,18 @@ import (
"testing"
"github.com/google/uuid"
"github.com/gravitl/netmaker/database"
"github.com/gravitl/netmaker/models"
"github.com/gravitl/netmaker/models/promodels"
"github.com/stretchr/testify/assert"
)
func TestMain(m *testing.M) {
database.InitializeDatabase()
defer database.CloseDB()
}
func TestNetworkUserLogic(t *testing.T) {
initialize()
networkUser := promodels.NetworkUser{
ID: "helloworld",
}