Browse Source

e2e: unset ETCDCTL_API env var before running u2e tests

existing ETCDCTL_API env var causes e2e to fail some of its tests.  ETCDCTL_API should not be set before e2e tests start.
the tests themselves should set ETCDCTL_API properly.
fanmin shi 9 years ago
parent
commit
b741452d03
1 changed files with 1 additions and 0 deletions
  1. 1 0
      e2e/main_test.go

+ 1 - 0
e2e/main_test.go

@@ -18,6 +18,7 @@ var certDir string
 
 func TestMain(m *testing.M) {
 	os.Setenv("ETCD_UNSUPPORTED_ARCH", runtime.GOARCH)
+	os.Unsetenv("ETCDCTL_API")
 
 	flag.StringVar(&binDir, "bin-dir", "../bin", "The directory for store etcd and etcdctl binaries.")
 	flag.StringVar(&certDir, "cert-dir", "../integration/fixtures", "The directory for store certificate files.")