From d1da42ef3eceaf59dea246fe7d956d8480b039a4 Mon Sep 17 00:00:00 2001 From: Trevor North Date: Mon, 12 Sep 2022 19:39:58 +0100 Subject: [PATCH] Fix test expectations --- exporter/metrics_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/metrics_test.go b/exporter/metrics_test.go index 8f65fca41..955b7a5b7 100644 --- a/exporter/metrics_test.go +++ b/exporter/metrics_test.go @@ -142,7 +142,7 @@ func TestMakeRawMetric(t *testing.T) { {value: float32(1.23), wantVal: pointer.ToFloat64(float64(float32(1.23)))}, {value: float64(1.23), wantVal: pointer.ToFloat64(1.23)}, {value: primitive.A{}, wantVal: nil}, - {value: primitive.Timestamp{}, wantVal: nil}, + {value: primitive.Timestamp{T: 123, I: 456}, wantVal: pointer.ToFloat64(123)}, {value: "zapp", wantVal: nil}, {value: []byte{}, wantVal: nil}, {value: time.Date(2020, 6, 15, 0, 0, 0, 0, time.UTC), wantVal: nil},