Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
24298430
Commit
24298430
authored
Aug 07, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test delayed datastore
parent
913061ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
delayed/delayed_test.go
delayed/delayed_test.go
+5
-0
No files found.
delayed/delayed_test.go
View file @
24298430
...
...
@@ -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"
)
...
...
@@ -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
)))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment