From d35ed29dfb385874e49d5be4780712a15dc48de7 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Mon, 14 Mar 2022 18:18:56 +0000 Subject: [PATCH] extra unit test --- model/internal/pdata/common_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/model/internal/pdata/common_test.go b/model/internal/pdata/common_test.go index f049712e471..e0f52271d9c 100644 --- a/model/internal/pdata/common_test.go +++ b/model/internal/pdata/common_test.go @@ -17,6 +17,7 @@ package pdata import ( "encoding/base64" "fmt" + "math" "strconv" "testing" @@ -1037,6 +1038,11 @@ func TestAsString(t *testing.T) { input: NewValueDouble(.000000009), expected: "9e-9", }, + { + name: "bad float64", + input: NewAttributeValueDouble(math.Inf(1)), + expected: "json: unsupported value: +Inf", + }, { name: "boolean", input: NewValueBool(true),