Commit 24298430 authored by Steven Allen's avatar Steven Allen

test delayed datastore

parent 913061ca
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"time" "time"
datastore "github.com/ipfs/go-datastore" datastore "github.com/ipfs/go-datastore"
dstest "github.com/ipfs/go-datastore/test"
delay "github.com/ipfs/go-ipfs-delay" delay "github.com/ipfs/go-ipfs-delay"
) )
...@@ -24,3 +25,7 @@ func TestDelayed(t *testing.T) { ...@@ -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") 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)))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment