test(v2): normalize whitespace in pseudoSleep calls for consistency

This commit is contained in:
Yoshiyuki Mineo
2025-05-05 01:11:05 +09:00
parent 2e5388b9dd
commit 635994a2f6

View File

@@ -211,10 +211,10 @@ func TestNextID_ReturnsError(t *testing.T) {
sf := newSonyflake(t, Settings{StartTime: time.Now()})
year := time.Duration(365*24) * time.Hour
pseudoSleep(sf, time.Duration(174) * year)
pseudoSleep(sf, time.Duration(174)*year)
nextID(t, sf)
pseudoSleep(sf, time.Duration(1) * year)
pseudoSleep(sf, time.Duration(1)*year)
_, err := sf.NextID()
if err == nil {
t.Errorf("time is not over")