Skip to content

Commit 596b37f

Browse files
committed
test: faster delaystore test
We don't _actually_ need to delay here. The basic subtests don't even know that things should be delayed.
1 parent 006ea6b commit 596b37f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

delayed/delayed_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ func TestDelayed(t *testing.T) {
2727
}
2828

2929
func TestDelayedAll(t *testing.T) {
30-
dstest.SubtestAll(t, New(datastore.NewMapDatastore(), delay.Fixed(time.Millisecond)))
30+
// Delay for virtually no time, we just want to make sure this works correctly, not that it
31+
// delays anything.
32+
dstest.SubtestAll(t, New(datastore.NewMapDatastore(), delay.Fixed(time.Nanosecond)))
3133
}

0 commit comments

Comments
 (0)