Skip to content

Commit

Permalink
use assert.InDelta instead of assert.Equal
Browse files Browse the repository at this point in the history
  • Loading branch information
cawthorne committed Oct 23, 2024
1 parent 6a9ecad commit e03d9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/ocrcommon/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestGetJsonParsedValueHexValues(t *testing.T) {
}

resp := getJsonParsedValue(trrsHexData[0], &trrsHexData)
assert.Equal(t, 109519.0, *resp)
assert.InDelta(t, 109519.0, *resp, 0)

trrsHexData = pipeline.TaskRunResults{
pipeline.TaskRunResult{
Expand All @@ -233,7 +233,7 @@ func TestGetJsonParsedValueHexValues(t *testing.T) {
}

resp = getJsonParsedValue(trrsHexData[0], &trrsHexData)
assert.Equal(t, 109519.0, *resp)
assert.InDelta(t, 109519.0, *resp, 0)

trrsHexData = pipeline.TaskRunResults{
pipeline.TaskRunResult{
Expand Down

0 comments on commit e03d9f6

Please sign in to comment.