From aa5c8b8ffd15331bb7bfbf3e736c24a4253c0e51 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 6 Feb 2014 22:52:18 -0800 Subject: [PATCH] test(config): unexport ETCD_DISCOVERY if this is exported the next tests will try and use it and fail. --- config/config_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config_test.go b/config/config_test.go index 96408bab0..d006e4d48 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -113,6 +113,9 @@ func TestConfigEnv(t *testing.T) { assert.Equal(t, c.Peer.CertFile, "/tmp/peer/file.cert", "") assert.Equal(t, c.Peer.KeyFile, "/tmp/peer/file.key", "") assert.Equal(t, c.Peer.BindAddr, "127.0.0.1:7003", "") + + // Clear this as it will mess up other tests + os.Setenv("ETCD_DISCOVERY", "") } // Ensures that the "help" flag can be parsed.