Skip to content

Commit

Permalink
Fix a flaky reconcile test when delete
Browse files Browse the repository at this point in the history
  • Loading branch information
xychu committed Jan 8, 2019
1 parent 6dcb234 commit 985a292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/scaffold/controller/controllertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ func TestReconcile(t *testing.T) {
Should(gomega.Succeed())
// Manually delete Deployment since GC isn't enabled in the test control plane
g.Expect(c.Delete(context.TODO(), deploy)).To(gomega.Succeed())
g.Eventually(func() error { return c.Delete(context.TODO(), deploy) }, timeout).
Should(gomega.MatchError("deployments.apps \"foo-deployment\" not found"))
{{ end }}
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func TestReconcile(t *testing.T) {
Should(gomega.Succeed())

// Manually delete Deployment since GC isn't enabled in the test control plane
g.Expect(c.Delete(context.TODO(), deploy)).To(gomega.Succeed())
g.Eventually(func() error { return c.Delete(context.TODO(), deploy) }, timeout).
Should(gomega.MatchError("deployments.apps \"foo-deployment\" not found"))

}

0 comments on commit 985a292

Please sign in to comment.