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-blockservice
Commits
10090dc7
Commit
10090dc7
authored
Nov 23, 2014
by
Brian Tiger Chow
Committed by
Jeromy
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(blockservice) test
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
0f5ebd5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
blocks_test.go
blocks_test.go
+6
-1
No files found.
blocks_test.go
View file @
10090dc7
...
@@ -87,9 +87,14 @@ func TestGetBlocks(t *testing.T) {
...
@@ -87,9 +87,14 @@ func TestGetBlocks(t *testing.T) {
servs
[
0
]
.
AddBlock
(
blk
)
servs
[
0
]
.
AddBlock
(
blk
)
}
}
var
chans
[]
<-
chan
*
blocks
.
Block
for
i
:=
1
;
i
<
4
;
i
++
{
for
i
:=
1
;
i
<
4
;
i
++
{
ctx
,
_
:=
context
.
WithTimeout
(
context
.
TODO
(),
time
.
Second
*
5
)
ctx
,
_
:=
context
.
WithTimeout
(
context
.
TODO
(),
time
.
Second
*
5
)
out
:=
servs
[
i
]
.
GetBlocks
(
ctx
,
keys
)
ch
:=
servs
[
i
]
.
GetBlocks
(
ctx
,
keys
)
chans
=
append
(
chans
,
ch
)
}
for
_
,
out
:=
range
chans
{
gotten
:=
make
(
map
[
u
.
Key
]
*
blocks
.
Block
)
gotten
:=
make
(
map
[
u
.
Key
]
*
blocks
.
Block
)
for
blk
:=
range
out
{
for
blk
:=
range
out
{
if
_
,
ok
:=
gotten
[
blk
.
Key
()];
ok
{
if
_
,
ok
:=
gotten
[
blk
.
Key
()];
ok
{
...
...
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