浏览代码

prevent e2e tests to reuse etcd network config of previous tests

Andree Klattenhoff 5 年之前
父节点
当前提交
5224604055
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dist/functional-test.sh

+ 1 - 0
dist/functional-test.sh

@@ -45,6 +45,7 @@ setup() {
 
 teardown() {
     docker rm -f flannel-e2e-test-flannel1 flannel-e2e-test-flannel2 flannel-e2e-test-flannel1-iperf flannel-host1 flannel-host2 > /dev/null 2>&1
+    docker run --rm $ETCDCTL_IMG etcdctl --endpoints=$etcd_endpt rm /coreos.com/network/config > /dev/null 2>&1
 }
 
 write_config_etcd() {