Skip to content

Commit

Permalink
check tidb pods only
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Mar 27, 2020
1 parent d2c8644 commit 38a2c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/tidbcluster/serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {
e2elog.Failf("at least 3 statefulsets must be created, got %d", len(stsList.Items))
}

podListBeforeUpgrade, err := c.CoreV1().Pods(tc.Namespace).List(metav1.ListOptions{})
podListBeforeUpgrade, err := c.CoreV1().Pods(tc.Namespace).List(listOption)
framework.ExpectNoError(err)

ginkgo.By("Upgrading tidb-operator with AdvancedStatefulSet feature")
Expand Down Expand Up @@ -493,7 +493,7 @@ var _ = ginkgo.Describe("[tidb-operator][Serial]", func() {

ginkgo.By("Make sure pods are not changed")
err = utilpod.WaitForPodsAreChanged(c, podListBeforeUpgrade.Items, time.Minute*3)
framework.ExpectEqual(err, wait.ErrWaitTimeout, "Pods was not affeteced after the operator is upgraded")
framework.ExpectEqual(err, wait.ErrWaitTimeout, "Pods are changed after the operator is upgraded")
})

// tidb-operator with pod admission webhook enabled
Expand Down

0 comments on commit 38a2c58

Please sign in to comment.