Skip to content

Commit

Permalink
test delayed datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Aug 7, 2018
1 parent 709f1b7 commit 9105a84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions delayed/delayed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

datastore "github.com/ipfs/go-datastore"
delay "github.com/ipfs/go-ipfs-delay"
dstest "github.com/ipfs/go-datastore/test"
)

func TestDelayed(t *testing.T) {
Expand All @@ -24,3 +25,8 @@ func TestDelayed(t *testing.T) {
t.Fatal("There should have been a delay of 1 second in put and in get")
}
}


func TestDelayedAll(t *testing.T) {
dstest.SubtestAll(t, New(datastore.NewMapDatastore(), delay.Fixed(time.Millisecond)))
}

0 comments on commit 9105a84

Please sign in to comment.