Skip to content

Commit

Permalink
test: faster delaystore test
Browse files Browse the repository at this point in the history
We don't _actually_ need to delay here. The basic subtests don't even
know that things should be delayed.
  • Loading branch information
Stebalien committed Jul 12, 2021
1 parent 006ea6b commit 596b37f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion delayed/delayed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ func TestDelayed(t *testing.T) {
}

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

0 comments on commit 596b37f

Please sign in to comment.