Correct float test for error rate

This commit is contained in:
9seconds
2021-04-01 17:28:45 +03:00
parent b91f28d7d9
commit 132a01c27e
+5 -1
View File
@@ -36,7 +36,11 @@ func (suite *TypeErrorRateTestSuite) TestUnmarshalFail() {
})
}
suite.Error(json.Unmarshal([]byte("test"), &typeErrorRateTestStruct{}))
data, err := json.Marshal(map[string]string{
"value": "hello",
})
suite.NoError(err)
suite.Error(json.Unmarshal(data, &typeErrorRateTestStruct{}))
}
func (suite *TypeErrorRateTestSuite) TestUnmarshalOk() {