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},