Skip to content

Commit

Permalink
Test the test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Nov 14, 2024
1 parent fc4fc30 commit 5b2ab97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/tests/public/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var _ = Describe("Middleware", func() {
req.Header.Add(requestIdHeader, requestId)

res, err := test.Client.Do(req)
Expect(err).ToNot(HaveOccurred())
Expect(err).To(HaveOccurred())
Expect(res.Header.Get(requestIdHeader)).To(Equal(requestId))
})
})
Expand All @@ -33,7 +33,7 @@ var _ = Describe("Middleware", func() {
req, err := http.NewRequest(http.MethodGet, "http://localhost:9002/api/playbook-dispatcher/v1/openapi.json", nil)
Expect(err).ToNot(HaveOccurred())
res, err := test.Client.Do(req)
Expect(err).ToNot(HaveOccurred())
Expect(err).To(HaveOccurred())

Expect(res.StatusCode).To(Equal(http.StatusOK))
})
Expand Down

0 comments on commit 5b2ab97

Please sign in to comment.