fixed test based on new logic

This commit is contained in:
0xdcarns
2022-02-14 10:10:58 -05:00
parent 469618aa72
commit 0a819624f1

View File

@@ -1,6 +1,7 @@
package controller
import (
"os"
"testing"
"time"
@@ -193,6 +194,7 @@ func TestSecurityCheck(t *testing.T) {
//these seem to work but not sure it the tests are really testing the functionality
database.InitializeDatabase()
os.Setenv("MASTER_KEY", "secretkey")
t.Run("NoNetwork", func(t *testing.T) {
err, networks, username := SecurityCheck(false, "", "Bearer secretkey")
assert.Nil(t, err)