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
interface-go-dms3-core
Commits
91f8aac4
Commit
91f8aac4
authored
Mar 11, 2019
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unixfs: fix ls test for new add
parent
56944d64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/unixfs.go
tests/unixfs.go
+2
-4
No files found.
tests/unixfs.go
View file @
91f8aac4
...
...
@@ -724,10 +724,8 @@ func (tp *provider) TestLs(t *testing.T) {
r
:=
strings
.
NewReader
(
"content-of-file"
)
p
,
err
:=
api
.
Unixfs
()
.
Add
(
ctx
,
files
.
NewMapDirectory
(
map
[
string
]
files
.
Node
{
"0"
:
files
.
NewMapDirectory
(
map
[
string
]
files
.
Node
{
"name-of-file"
:
files
.
NewReaderFile
(
r
),
"name-of-symlink"
:
files
.
NewLinkFile
(
"/foo/bar"
,
nil
),
}),
}))
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
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