fix readiness check test

This commit is contained in:
Adel Salakh 2025-05-15 00:31:46 +02:00
parent ea8ac862c3
commit eecea5a1be
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))