shorter queue test (reloaded)
Juan Batiz-Benet committed
Dec 10, 2014 at 21:06 UTC
f952275bf2123495929e3a4643034f4f4c90770e
1 file changed
+3
-5
peer/queue/queue_test.go
+3
-5
@@ -74,19 +74,17 @@ func newPeerTime(t time.Time) peer.Peer {
74
}
75
76
func TestSyncQueue(t *testing.T) {
77
- tickT := time.Microsecond * 100
78
- max := 10000
77
+ tickT := time.Microsecond * 50
78
+ max := 5000
79
consumerN := 10
80
countsIn := make([]int, consumerN*2)
81
countsOut := make([]int, consumerN)
82
83
if testing.Short() {
84
- tickT = time.Microsecond * 50
84
max = 1000
86
- t.SkipNow()
85
}
88
- ctx := context.Background()
86
87
+ ctx := context.Background()
88
pq := NewXORDistancePQ(u.Key("11140beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a31"))
89
cq := NewChanQueue(ctx, pq)
90
wg := sync.WaitGroup{}