Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1262 from coreos/flaketest
Browse files Browse the repository at this point in the history
upgrade_e2e: delete endpoint after delete operator
  • Loading branch information
hongchaodeng committed Jul 7, 2017
2 parents 32e17ea + 68f5741 commit 623d16b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/e2e/upgradetest/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ func (f *Framework) DeleteOperator(name string) error {
LabelSelector: labels.SelectorFromSet(operatorLabelSelector(name)).String(),
}
_, err = e2eutil.WaitPodsDeletedCompletely(f.KubeCli, f.KubeNS, 30*time.Second, lo)
return err
if err != nil {
return err
}
// This is assumption coupled with endpoint resource lock.
// TODO: change this if we change to use another kind of lock, e.g. configmap.
return f.KubeCli.CoreV1().Endpoints(f.KubeNS).Delete("etcd-operator", metav1.NewDeleteOptions(0))
}

func (f *Framework) UpgradeOperator(name string) error {
Expand Down

0 comments on commit 623d16b

Please sign in to comment.