Skip to content

Commit 26afef5

Browse files
Update TimeUnit in ToTime test to use 100 milliseconds for improved accuracy in timestamp validation.
1 parent 1147165 commit 26afef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/sonyflake_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func TestLower16BitPrivateIP(t *testing.T) {
358358
func TestToTime(t *testing.T) {
359359
start := time.Now()
360360
sf := newSonyflake(t, Settings{
361-
TimeUnit: time.Millisecond,
361+
TimeUnit: 100 * time.Millisecond,
362362
StartTime: start,
363363
})
364364

0 commit comments

Comments
 (0)