@@ -134,11 +134,11 @@ func TestBuilderBuildBlock(t *testing.T) {
134
134
tx := & txs.Tx {Unsigned : unsignedTx }
135
135
136
136
mempool := mempool .NewMockMempool (ctrl )
137
- mempool .EXPECT ().Peek (gomock . Any () ).Return (tx )
137
+ mempool .EXPECT ().Peek ().Return (tx )
138
138
mempool .EXPECT ().Remove ([]* txs.Tx {tx })
139
139
mempool .EXPECT ().MarkDropped (tx .ID (), errTest )
140
140
// Second loop iteration
141
- mempool .EXPECT ().Peek (gomock . Any () ).Return (nil )
141
+ mempool .EXPECT ().Peek ().Return (nil )
142
142
mempool .EXPECT ().RequestBuildBlock ()
143
143
144
144
return New (
@@ -179,11 +179,11 @@ func TestBuilderBuildBlock(t *testing.T) {
179
179
tx := & txs.Tx {Unsigned : unsignedTx }
180
180
181
181
mempool := mempool .NewMockMempool (ctrl )
182
- mempool .EXPECT ().Peek (gomock . Any () ).Return (tx )
182
+ mempool .EXPECT ().Peek ().Return (tx )
183
183
mempool .EXPECT ().Remove ([]* txs.Tx {tx })
184
184
mempool .EXPECT ().MarkDropped (tx .ID (), errTest )
185
185
// Second loop iteration
186
- mempool .EXPECT ().Peek (gomock . Any () ).Return (nil )
186
+ mempool .EXPECT ().Peek ().Return (nil )
187
187
mempool .EXPECT ().RequestBuildBlock ()
188
188
189
189
return New (
@@ -225,11 +225,11 @@ func TestBuilderBuildBlock(t *testing.T) {
225
225
tx := & txs.Tx {Unsigned : unsignedTx }
226
226
227
227
mempool := mempool .NewMockMempool (ctrl )
228
- mempool .EXPECT ().Peek (gomock . Any () ).Return (tx )
228
+ mempool .EXPECT ().Peek ().Return (tx )
229
229
mempool .EXPECT ().Remove ([]* txs.Tx {tx })
230
230
mempool .EXPECT ().MarkDropped (tx .ID (), errTest )
231
231
// Second loop iteration
232
- mempool .EXPECT ().Peek (gomock . Any () ).Return (nil )
232
+ mempool .EXPECT ().Peek ().Return (nil )
233
233
mempool .EXPECT ().RequestBuildBlock ()
234
234
235
235
return New (
@@ -309,14 +309,14 @@ func TestBuilderBuildBlock(t *testing.T) {
309
309
)
310
310
311
311
mempool := mempool .NewMockMempool (ctrl )
312
- mempool .EXPECT ().Peek (targetBlockSize ).Return (tx1 )
312
+ mempool .EXPECT ().Peek ().Return (tx1 )
313
313
mempool .EXPECT ().Remove ([]* txs.Tx {tx1 })
314
314
// Second loop iteration
315
- mempool .EXPECT ().Peek (targetBlockSize - len ( tx1Bytes ) ).Return (tx2 )
315
+ mempool .EXPECT ().Peek ().Return (tx2 )
316
316
mempool .EXPECT ().Remove ([]* txs.Tx {tx2 })
317
317
mempool .EXPECT ().MarkDropped (tx2 .ID (), blkexecutor .ErrConflictingBlockTxs )
318
318
// Third loop iteration
319
- mempool .EXPECT ().Peek (targetBlockSize - len ( tx1Bytes ) ).Return (nil )
319
+ mempool .EXPECT ().Peek ().Return (nil )
320
320
mempool .EXPECT ().RequestBuildBlock ()
321
321
322
322
// To marshal the tx/block
@@ -385,10 +385,10 @@ func TestBuilderBuildBlock(t *testing.T) {
385
385
tx := & txs.Tx {Unsigned : unsignedTx }
386
386
387
387
mempool := mempool .NewMockMempool (ctrl )
388
- mempool .EXPECT ().Peek (gomock . Any () ).Return (tx )
388
+ mempool .EXPECT ().Peek ().Return (tx )
389
389
mempool .EXPECT ().Remove ([]* txs.Tx {tx })
390
390
// Second loop iteration
391
- mempool .EXPECT ().Peek (gomock . Any () ).Return (nil )
391
+ mempool .EXPECT ().Peek ().Return (nil )
392
392
mempool .EXPECT ().RequestBuildBlock ()
393
393
394
394
// To marshal the tx/block
@@ -459,10 +459,10 @@ func TestBuilderBuildBlock(t *testing.T) {
459
459
tx := & txs.Tx {Unsigned : unsignedTx }
460
460
461
461
mempool := mempool .NewMockMempool (ctrl )
462
- mempool .EXPECT ().Peek (gomock . Any () ).Return (tx )
462
+ mempool .EXPECT ().Peek ().Return (tx )
463
463
mempool .EXPECT ().Remove ([]* txs.Tx {tx })
464
464
// Second loop iteration
465
- mempool .EXPECT ().Peek (gomock . Any () ).Return (nil )
465
+ mempool .EXPECT ().Peek ().Return (nil )
466
466
mempool .EXPECT ().RequestBuildBlock ()
467
467
468
468
// To marshal the tx/block
0 commit comments