diff --git a/processing_handler_test.go b/processing_handler_test.go index 0f3a86fa..f867c50c 100644 --- a/processing_handler_test.go +++ b/processing_handler_test.go @@ -374,7 +374,7 @@ func (s *ProcessingHandlerTestSuite) TestCacheControlPassthroughExpires() { res := rw.Result() // Use regex to allow some delay - s.Require().Regexp(regexp.MustCompile("max-age=123[0-9], public"), res.Header.Get("Cache-Control")) + s.Require().Regexp("max-age=123[0-9], public", res.Header.Get("Cache-Control")) s.Require().Empty(res.Header.Get("Expires")) }