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

This commit is contained in:
Yoshiyuki Mineo
2025-06-23 23:07:41 +09:00
committed by GitHub
parent 114716564a
commit 0cdef9e4fe

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