diff --git a/influxdb3/point_test.go b/influxdb3/point_test.go index a56bb87..1f7e146 100644 --- a/influxdb3/point_test.go +++ b/influxdb3/point_test.go @@ -190,4 +190,6 @@ func TestPoint_SetTimestamp(t *testing.T) { p := NewPoint("test", nil, nil, time.Unix(60, 70)) p.SetTimestamp(time.Unix(60, 80)) assert.Equal(t, time.Unix(60, 80), p.Values.Timestamp) + p.SetTimestampWithEpoch(99) + assert.Equal(t, time.Unix(0, 99), p.Values.Timestamp) }