Skip to content

Commit

Permalink
fix example test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyLoy committed Apr 7, 2019
1 parent 4f67a1b commit 2f685fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func Example() {

func Example_fromFileWithOverride() {
tempFile, _ := ioutil.TempFile("", "temp")
tempFile.Write([]byte(strings.Join([]string{"PORT=1234", "FEATUREFLAG=true"}, "\n")))
tempFile.Write([]byte(strings.Join([]string{"PORT=1234", "FEATURE_FLAG=true"}, "\n")))
tempFile.Close()

os.Setenv("DATABASEURL", "db://")
os.Setenv("DATABASE_URL", "db://")
os.Setenv("PORT", "5678")

var c MyConfig
Expand Down

0 comments on commit 2f685fc

Please sign in to comment.