Browse Source

prevent e2e tests to reuse etcd network config of previous tests

Andree Klattenhoff 5 years ago
parent
commit
5224604055
1 changed files with 1 additions and 0 deletions
  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() {