Skip to content

Commit

Permalink
changing the env var name to be more general (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Feinberg authored Apr 25, 2019
1 parent dbc9a7f commit 561a653
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/system/host_data_provider_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package system_test

import (
"github.com/pantheon-systems/pauditd/pkg/system"
"os"
"testing"

"github.com/pantheon-systems/pauditd/pkg/system"

"github.com/stretchr/testify/assert"
)

func Test_GetHostnameWithEnvVar(t *testing.T) {
testName := "test-node-name"

os.Setenv("NODENAME", testName)
os.Setenv("HOSTNAME", testName)

hostname := system.GetHostname()

Expand Down

0 comments on commit 561a653

Please sign in to comment.