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 aba71cc commit 9c08f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions delayed/delayed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

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

Expand All @@ -24,3 +25,7 @@ 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 9c08f63

Please sign in to comment.