mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test(config): unexport ETCD_DISCOVERY
if this is exported the next tests will try and use it and fail.
This commit is contained in:
parent
1b3481fe25
commit
aa5c8b8ffd
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user