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
0632d509
Commit
0632d509
authored
Jan 26, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fs example tests
parent
b21beb7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
examples/fs_test.go
examples/fs_test.go
+3
-4
No files found.
examples/fs_test.go
View file @
0632d509
...
...
@@ -7,7 +7,6 @@ import (
.
"launchpad.net/gocheck"
ds
"github.com/ipfs/go-datastore"
fs
"github.com/ipfs/go-datastore/fs"
query
"github.com/ipfs/go-datastore/query"
)
...
...
@@ -23,15 +22,15 @@ var _ = Suite(&DSSuite{})
func
(
ks
*
DSSuite
)
SetUpTest
(
c
*
C
)
{
ks
.
dir
=
c
.
MkDir
()
ks
.
ds
,
_
=
fs
.
NewDatastore
(
ks
.
dir
)
ks
.
ds
,
_
=
NewDatastore
(
ks
.
dir
)
}
func
(
ks
*
DSSuite
)
TestOpen
(
c
*
C
)
{
_
,
err
:=
fs
.
NewDatastore
(
"/tmp/foo/bar/baz"
)
_
,
err
:=
NewDatastore
(
"/tmp/foo/bar/baz"
)
c
.
Assert
(
err
,
Not
(
Equals
),
nil
)
// setup ds
_
,
err
=
fs
.
NewDatastore
(
ks
.
dir
)
_
,
err
=
NewDatastore
(
ks
.
dir
)
c
.
Assert
(
err
,
Equals
,
nil
)
}
...
...
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