1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Fix tests

This commit is contained in:
DarthSim 2019-05-07 17:21:27 +06:00
parent c0c471ac99
commit 9aa5e20b3f

View File

@ -389,9 +389,12 @@ func (s *ProcessingOptionsTestSuite) TestParsePathAdvancedPresetLoopDetection()
}
req := s.getRequest("http://example.com/unsafe/preset:test1:test2:test1/plain/http://images.dev/lorem/ipsum.jpg")
_, err := parsePath(context.Background(), req)
ctx, err := parsePath(context.Background(), req)
require.Error(s.T(), err)
require.Nil(s.T(), err)
po := getProcessingOptions(ctx)
require.ElementsMatch(s.T(), po.UsedPresets, []string{"test1", "test2"})
}
func (s *ProcessingOptionsTestSuite) TestParsePathAdvancedCachebuster() {