Commit 6600b6e

mo khan <mo@mokhan.ca>
2025-04-17 16:33:33
test: do not print env vars to ci log
1 parent 28dfb20
Changed files (1)
pkg/env/env_test.go
@@ -1,7 +1,6 @@
 package env
 
 import (
-	"strings"
 	"testing"
 
 	"github.com/stretchr/testify/assert"
@@ -24,12 +23,8 @@ func TestEnv(t *testing.T) {
 
 	t.Run("Variables", func(t *testing.T) {
 		for key, value := range Variables() {
-			if strings.HasPrefix(key, "GITHUB_") {
-				continue
-			}
-
-			assert.False(t, key == "", "key: '%v'", key)
-			assert.False(t, value == "", "key: '%v', value: '%v'", key, value)
+			assert.NotEmpty(t, key)
+			assert.NotNil(t, value)
 		}
 	})
 }