mirror of
https://github.com/sony/sonyflake.git
synced 2026-01-10 05:07:21 +00:00
Update TimeUnit in ToTime test to use 100 milliseconds for improved accuracy in timestamp validation. (#77)
This commit is contained in:
@@ -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