Skip to content

Commit

Permalink
chore: add field values
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Nov 2, 2023
1 parent bf0e2d6 commit 91cd920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions influxdb3/point_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,9 @@ func TestCopy(t *testing.T) {

assert.EqualValues(t, point, pointCopy)
}

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

0 comments on commit 91cd920

Please sign in to comment.