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
9ebc1123
Unverified
Commit
9ebc1123
authored
Mar 29, 2019
by
Steven Allen
Committed by
GitHub
Mar 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from ipfs/fix/no-close-addr
don't close the top-level addr
parents
ccf9dacf
1b707f29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/unixfs.go
tests/unixfs.go
+1
-2
No files found.
tests/unixfs.go
View file @
9ebc1123
...
...
@@ -839,6 +839,7 @@ type closeTestD struct {
}
func
(
f
*
closeTestD
)
Close
()
error
{
f
.
t
.
Helper
()
if
f
.
closed
{
f
.
t
.
Fatal
(
"already closed"
)
}
...
...
@@ -879,8 +880,6 @@ func (tp *provider) TestAddCloses(t *testing.T) {
t
.
Fatal
(
err
)
}
d0
.
Close
()
// Adder doesn't close top-level file
for
i
,
n
:=
range
[]
*
closeTestF
{
n1
,
n2
,
n4
}
{
if
!
n
.
closed
{
t
.
Errorf
(
"file %d not closed!"
,
i
)
...
...
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