Update TimeUnit in ToTime test to use 100 milliseconds for improved accuracy in timestamp validation. (#77)

This commit is contained in:
Yoshiyuki Mineo authored and GitHub committed 2025-06-23 23:07:41 +09:00
1 parent 114716564a
commit 0cdef9e4fe
1 file changed
+1 -1
+1 -1
View File
@@ -358,7 +358,7 @@ func TestLower16BitPrivateIP(t *testing.T) {
func TestToTime(t *testing.T) {
start := time.Now()
sf := newSonyflake(t, Settings{
TimeUnit: time.Millisecond,
TimeUnit: 100 * time.Millisecond,
StartTime: start,
})