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-unixfs
Commits
3430a4d8
Commit
3430a4d8
authored
Oct 30, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
remove comment
parents
461e5a3c
f62cedf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
util/util_test.go
util/util_test.go
+0
-3
No files found.
util/util_test.go
View file @
3430a4d8
...
@@ -41,7 +41,6 @@ func TestByteChanReader(t *testing.T) {
...
@@ -41,7 +41,6 @@ func TestByteChanReader(t *testing.T) {
chunk
:=
make
([]
byte
,
rand
.
Intn
(
100000
)
+
10
)
chunk
:=
make
([]
byte
,
rand
.
Intn
(
100000
)
+
10
)
randr
.
Read
(
chunk
)
randr
.
Read
(
chunk
)
data
.
Write
(
chunk
)
data
.
Write
(
chunk
)
// fmt.Printf("chunk: %6.d %v\n", len(chunk), chunk[:10])
dch
<-
chunk
dch
<-
chunk
}
}
}()
}()
...
@@ -53,13 +52,11 @@ func TestByteChanReader(t *testing.T) {
...
@@ -53,13 +52,11 @@ func TestByteChanReader(t *testing.T) {
buf
:=
make
([]
byte
,
rand
.
Intn
(
10
)
*
10
)
buf
:=
make
([]
byte
,
rand
.
Intn
(
10
)
*
10
)
n
,
err
:=
read
.
Read
(
buf
)
n
,
err
:=
read
.
Read
(
buf
)
data2
.
Write
(
buf
[
:
n
])
data2
.
Write
(
buf
[
:
n
])
// fmt.Printf("read: %6.d\n", n)
if
err
!=
nil
{
if
err
!=
nil
{
break
break
}
}
}
}
// fmt.Printf("lens: %d == %d\n", len(out), len(data.Bytes()))
if
!
bytes
.
Equal
(
data2
.
Bytes
(),
data
.
Bytes
())
{
if
!
bytes
.
Equal
(
data2
.
Bytes
(),
data
.
Bytes
())
{
t
.
Fatal
(
"Reader failed to stream correct bytes"
)
t
.
Fatal
(
"Reader failed to stream correct bytes"
)
}
}
...
...
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