Skip to content

Commit a2d3420

Browse files
committed
Remove boost from TestLeveLQueue
Signed-off-by: Andrew Thornton <[email protected]>
1 parent e01342d commit a2d3420

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

modules/queue/queue_disk_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestLevelQueue(t *testing.T) {
4040
BatchLength: 2,
4141
BlockTimeout: 1 * time.Second,
4242
BoostTimeout: 5 * time.Minute,
43-
BoostWorkers: 5,
43+
BoostWorkers: 0,
4444
MaxWorkers: 10,
4545
},
4646
Workers: 1,
@@ -72,10 +72,6 @@ func TestLevelQueue(t *testing.T) {
7272
result1 := <-handleChan
7373
result2 := <-handleChan
7474

75-
if result1.TestString != test1.TestString {
76-
result1, result2 = result2, result1
77-
}
78-
7975
assert.Equal(t, test1.TestString, result1.TestString)
8076
assert.Equal(t, test1.TestInt, result1.TestInt)
8177

@@ -118,7 +114,7 @@ func TestLevelQueue(t *testing.T) {
118114
BatchLength: 2,
119115
BlockTimeout: 1 * time.Second,
120116
BoostTimeout: 5 * time.Minute,
121-
BoostWorkers: 5,
117+
BoostWorkers: 0,
122118
MaxWorkers: 10,
123119
},
124120
Workers: 1,
@@ -139,10 +135,11 @@ func TestLevelQueue(t *testing.T) {
139135
})
140136

141137
result3 := <-handleChan
138+
result4 := <-handleChan
139+
142140
assert.Equal(t, test1.TestString, result3.TestString)
143141
assert.Equal(t, test1.TestInt, result3.TestInt)
144142

145-
result4 := <-handleChan
146143
assert.Equal(t, test2.TestString, result4.TestString)
147144
assert.Equal(t, test2.TestInt, result4.TestInt)
148145

0 commit comments

Comments
 (0)