Unset the ATLAS_TOKEN environment variable before that test

pull/1895/head
Seth Vargo 11 years ago
parent 8194846d86
commit 08ba23f10f

@ -9,6 +9,10 @@ import (
)
func TestPostProcessorConfigure(t *testing.T) {
currentEnv := os.Getenv("ATLAS_TOKEN")
os.Unsetenv("ATLAS_TOKEN")
defer os.Setenv("ATLAS_TOKEN", currentEnv)
var p PostProcessor
if err := p.Configure(validDefaults()); err != nil {
t.Fatalf("err: %s", err)

Loading…
Cancel
Save