mirror of
https://github.com/sony/sonyflake.git
synced 2026-11-20 00:06:28 +00:00
Update TimeUnit in ToTime test to use 100 milliseconds for improved accuracy in timestamp validation. (#77)
This commit is contained in:
1 parent
114716564a
commit
0cdef9e4fe
1 file changed
+1
-1
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user