mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
fix: unstable timeticksync unittest (#41437)
issue: #38399 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
9339bccccc
commit
7f5a9a6046
@ -70,7 +70,7 @@ func TestTimeTickSyncOperator(t *testing.T) {
|
||||
assert.ErrorIs(t, err, context.DeadlineExceeded)
|
||||
assert.Nil(t, r)
|
||||
// should not trigger any wal operation, but only update the timetick.
|
||||
operator.Sync(ctx, false)
|
||||
operator.Sync(context.Background(), false)
|
||||
r, err = wb.ReadFromExclusiveTimeTick(context.Background(), newTs)
|
||||
assert.NoError(t, err)
|
||||
// should not block because timetick updates.
|
||||
@ -87,5 +87,5 @@ func TestTimeTickSyncOperator(t *testing.T) {
|
||||
TimeTick: mm.TimeTick(),
|
||||
}, nil
|
||||
})
|
||||
operator.Sync(ctx, true)
|
||||
operator.Sync(context.Background(), true)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user