DarthSim 8 месяцев назад
Родитель
Сommit
8e5282a415
1 измененных файлов с 1 добавлено и 1 удалено
  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"))
 }