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-dms3
Commits
f952275b
Commit
f952275b
authored
Dec 10, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shorter queue test (reloaded)
parent
0f12f4b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
peer/queue/queue_test.go
peer/queue/queue_test.go
+3
-5
No files found.
peer/queue/queue_test.go
View file @
f952275b
...
...
@@ -74,19 +74,17 @@ func newPeerTime(t time.Time) peer.Peer {
}
func
TestSyncQueue
(
t
*
testing
.
T
)
{
tickT
:=
time
.
Microsecond
*
10
0
max
:=
10
000
tickT
:=
time
.
Microsecond
*
5
0
max
:=
5
000
consumerN
:=
10
countsIn
:=
make
([]
int
,
consumerN
*
2
)
countsOut
:=
make
([]
int
,
consumerN
)
if
testing
.
Short
()
{
tickT
=
time
.
Microsecond
*
50
max
=
1000
t
.
SkipNow
()
}
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
pq
:=
NewXORDistancePQ
(
u
.
Key
(
"11140beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a31"
))
cq
:=
NewChanQueue
(
ctx
,
pq
)
wg
:=
sync
.
WaitGroup
{}
...
...
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