fix readiness check test

Signed-off-by: Jan Larwig <jan@larwig.com>
Signed-off-by: Adel Salakh <adel@zetico.io>
This commit is contained in:
Adel Salakh 2025-05-15 00:31:46 +02:00 committed by Jan Larwig
parent 6fb29dc798
commit ce56ff135e
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ var _ = Describe("ReadynessCheck suite", func() {
rw := httptest.NewRecorder()
handler := NewReadynessCheck(in.readyPath, in.healthVerifiable)(http.NotFoundHandler())
ctx := context.Background()
handler := NewReadynessCheck(in.readyPath, in.healthVerifiable, ctx)(http.NotFoundHandler())
handler.ServeHTTP(rw, req)
Expect(rw.Code).To(Equal(in.expectedStatus))