Browse Source

Fix tests

DarthSim 6 years ago
parent
commit
a537e05b57
1 changed files with 3 additions and 3 deletions
  1. 3 3
      processing_options_test.go

+ 3 - 3
processing_options_test.go

@@ -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() {