mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
75ed8d4702
commit
66ea847cb8
@ -540,15 +540,15 @@ func TestRmqRetention_PageTimeExpire(t *testing.T) {
|
||||
assert.Equal(t, len(cMsgs), msgNum)
|
||||
assert.Equal(t, cMsgs[0].MsgID, ids2[0])
|
||||
|
||||
time.Sleep(time.Duration(3) * time.Second)
|
||||
|
||||
err = rmq.ForceSeek(topicName, groupName, ids[10])
|
||||
assert.Nil(t, err)
|
||||
newRes, err := rmq.Consume(topicName, groupName, 1)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, len(newRes), 1)
|
||||
// point to first not consumed messages
|
||||
assert.Equal(t, newRes[0].MsgID, ids2[0])
|
||||
assert.Eventually(t, func() bool {
|
||||
err = rmq.ForceSeek(topicName, groupName, ids[0])
|
||||
assert.Nil(t, err)
|
||||
newRes, err := rmq.Consume(topicName, groupName, 1)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, len(newRes), 1)
|
||||
// point to first not consumed messages
|
||||
return newRes[0].MsgID == ids2[0]
|
||||
}, 5*time.Second, 1*time.Second)
|
||||
|
||||
// test acked size acked ts and other meta are updated as expect
|
||||
msgSizeKey := MessageSizeTitle + topicName
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user