From 08ba23f10f96b7eb4a1ffa845904c5c51b117ebb Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 3 Feb 2015 18:13:15 -0500 Subject: [PATCH] Unset the ATLAS_TOKEN environment variable before that test --- post-processor/atlas/post-processor_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/post-processor/atlas/post-processor_test.go b/post-processor/atlas/post-processor_test.go index db35b8790..1fe629a88 100644 --- a/post-processor/atlas/post-processor_test.go +++ b/post-processor/atlas/post-processor_test.go @@ -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)