Skip to content

Commit

Permalink
Refactor gomega assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Sep 3, 2024
1 parent d89033f commit 982b7ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/suite/nginxgateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var _ = Describe("NginxGateway", Ordered, Label("functional", "nginxGateway"), f
ngfPodName, err := getNGFPodName()
Expect(err).ToNot(HaveOccurred())

Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).ToNot(HaveOccurred())
Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).To(Succeed())

Eventually(
func() bool {
Expand Down Expand Up @@ -134,7 +134,7 @@ var _ = Describe("NginxGateway", Ordered, Label("functional", "nginxGateway"), f
ngfPodName, err := getNGFPodName()
Expect(err).ToNot(HaveOccurred())

Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).ToNot(HaveOccurred())
Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).To(Succeed())

Eventually(
func() bool {
Expand Down Expand Up @@ -165,7 +165,7 @@ var _ = Describe("NginxGateway", Ordered, Label("functional", "nginxGateway"), f
" and the observed generation is incremented", func() {
// previous test has left the log level at info, this test will change the log level to debug

Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).ToNot(HaveOccurred())
Expect(verifyNginxGateway(nginxGatewayNsname, int64(1))).To(Succeed())

logs, err := resourceManager.GetPodLogs(ngfNamespace, ngfPodName, &core.PodLogOptions{
Container: "nginx-gateway",
Expand Down

0 comments on commit 982b7ca

Please sign in to comment.