From ba499eeb2ad26f66d5bf0b45f0af12478dec4573 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 2 May 2022 17:40:10 -0700 Subject: [PATCH] Fix acme/api tests. --- acme/api/middleware_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme/api/middleware_test.go b/acme/api/middleware_test.go index 39a696ae..193f5347 100644 --- a/acme/api/middleware_test.go +++ b/acme/api/middleware_test.go @@ -1634,9 +1634,9 @@ func TestHandler_checkPrerequisites(t *testing.T) { for name, run := range tests { tc := run(t) t.Run(name, func(t *testing.T) { - // h := &Handler{db: nil, linker: tc.linker, prerequisitesChecker: tc.prerequisitesChecker} + ctx := acme.NewPrerequisitesCheckerContext(tc.ctx, tc.prerequisitesChecker) req := httptest.NewRequest("GET", u, nil) - req = req.WithContext(tc.ctx) + req = req.WithContext(ctx) w := httptest.NewRecorder() checkPrerequisites(tc.next)(w, req) res := w.Result()