1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-03-17 20:17:48 +02:00

Fix tests

This commit is contained in:
DarthSim 2018-11-15 17:26:36 +06:00
parent d2cdc820aa
commit a537e05b57

View File

@ -314,7 +314,7 @@ func (s *ProcessingOptionsTestSuite) TestParsePathAdvancedDpr() {
require.Nil(s.T(), err)
po := getProcessingOptions(ctx)
assert.Equal(s.T(), float32(2), po.Dpr)
assert.Equal(s.T(), 2.0, po.Dpr)
}
func (s *ProcessingOptionsTestSuite) TestParsePathAdvancedWatermark() {
req := s.getRequest("http://example.com/unsafe/watermark:0.5:soea:10:20:0.6/plain/http://images.dev/lorem/ipsum.jpg")
@ -518,7 +518,7 @@ func (s *ProcessingOptionsTestSuite) TestParsePathDprHeader() {
require.Nil(s.T(), err)
po := getProcessingOptions(ctx)
assert.Equal(s.T(), float32(2), po.Dpr)
assert.Equal(s.T(), 2.0, po.Dpr)
}
func (s *ProcessingOptionsTestSuite) TestParsePathDprHeaderDisabled() {
@ -529,7 +529,7 @@ func (s *ProcessingOptionsTestSuite) TestParsePathDprHeaderDisabled() {
require.Nil(s.T(), err)
po := getProcessingOptions(ctx)
assert.Equal(s.T(), float32(1), po.Dpr)
assert.Equal(s.T(), 1.0, po.Dpr)
}
func (s *ProcessingOptionsTestSuite) TestParsePathSigned() {