Browse Source

fixed test based on new logic

0xdcarns 3 years ago
parent
commit
0c1762e31d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/network_test.go

+ 2 - 0
controllers/network_test.go

@@ -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)