Explorar o código

Fix linter error

DarthSim hai 8 meses
pai
achega
8e5282a415
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      processing_handler_test.go

+ 1 - 1
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"))
 }