From 5b2ab973ab647adbded9e4db19c849b57dfecaec Mon Sep 17 00:00:00 2001 From: Derek Horton Date: Thu, 14 Nov 2024 17:21:15 -0600 Subject: [PATCH] Test the test runs --- internal/api/tests/public/middleware_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/tests/public/middleware_test.go b/internal/api/tests/public/middleware_test.go index a8e78ee5..b3cb050a 100644 --- a/internal/api/tests/public/middleware_test.go +++ b/internal/api/tests/public/middleware_test.go @@ -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)) }) }) @@ -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)) })