@@ -124,7 +124,7 @@ func putCommonTests(t *testing.T, put func(*assembler.PartitionPrefetchIndex, ty
124124 require .NoError (t , err )
125125
126126 // Assert
127- assertBatchIdsEquals (t , batch , poped_batch )
127+ require . True (t , types . BatchIDEqual ( batch , poped_batch ) )
128128 })
129129
130130 t .Run ("PuttingBatchTooLargeWillResultInError" , func (t * testing.T ) {
@@ -184,7 +184,7 @@ func TestPartitionPrefetchIndex_PopOrWait(t *testing.T) {
184184
185185 // Assert
186186 require .NoError (t , err )
187- assertBatchIdsEquals (t , batch , poppedBatch )
187+ require . True (t , types . BatchIDEqual ( batch , poppedBatch ) )
188188 })
189189
190190 t .Run ("PopWillStopBatchTtlTimer" , func (t * testing.T ) {
@@ -236,7 +236,7 @@ func TestPartitionPrefetchIndex_PopOrWait(t *testing.T) {
236236 batchRequest := <- test .batchRequestChan
237237
238238 // Assert
239- assertBatchIdsEquals (t , batchRequest , popBatchId )
239+ require . True (t , types . BatchIDEqual ( batchRequest , popBatchId ) )
240240 })
241241
242242 t .Run ("PopBeforePutShouldNotRaiseRequestIfSeqGreaterThanLastPut" , func (t * testing.T ) {
@@ -290,7 +290,7 @@ func TestPartitionPrefetchIndex_PopOrWait(t *testing.T) {
290290 // Assert
291291 time .Sleep (eventuallyTick )
292292 batch := <- popedBatchChan
293- assertBatchIdsEquals (t , batches [9 ], batch )
293+ require . True (t , types . BatchIDEqual ( batches [9 ], batch ) )
294294 require .True (t , test .batchCache .Has (batches [7 ]))
295295 require .True (t , test .batchCache .Has (batches [8 ]))
296296 require .Equal (t , 2 , test .batchCache .SizeBytes ())
@@ -312,7 +312,7 @@ func TestPartitionPrefetchIndex_PopOrWait(t *testing.T) {
312312 // Assert
313313 time .Sleep (eventuallyTick )
314314 reqeustedBatchId := <- test .batchRequestChan
315- assertBatchIdsEquals (t , batch2 , reqeustedBatchId )
315+ require . True (t , types . BatchIDEqual ( batch2 , reqeustedBatchId ) )
316316 })
317317}
318318
@@ -510,7 +510,7 @@ func TestPartitionPrefetchIndex_PutForce(t *testing.T) {
510510
511511 // Assert
512512 require .NoError (t , err )
513- assertBatchIdsEquals (t , batch , poppedBatch )
513+ require . True (t , types . BatchIDEqual ( batch , poppedBatch ) )
514514 require .False (t , test .forcePutCache .Has (batch ))
515515 })
516516
@@ -543,7 +543,7 @@ func TestPartitionPrefetchIndex_PutForce(t *testing.T) {
543543 defer wg .Done ()
544544 poppedBatch , err := test .partitionPrefetchIndex .PopOrWait (batches [3 ])
545545 require .NoError (t , err )
546- assertBatchIdsEquals (t , batches [3 ], poppedBatch )
546+ require . True (t , types . BatchIDEqual ( batches [3 ], poppedBatch ) )
547547 }()
548548
549549 // Act
0 commit comments