fix: flaky test TestTable_revalidateSyncRecord

This commit is contained in:
Halimao 2024-06-18 23:23:21 +08:00
parent 7cf6a63687
commit 0b6a765de8

View file

@ -423,7 +423,9 @@ func TestTable_revalidateSyncRecord(t *testing.T) {
// Wait for revalidation. We wait for the node to be revalidated two times // Wait for revalidation. We wait for the node to be revalidated two times
// in order to synchronize with the update in the table. // in order to synchronize with the update in the table.
time.Sleep(5 * time.Millisecond)
waitForRevalidationPing(t, transport, tab, n2.ID()) waitForRevalidationPing(t, transport, tab, n2.ID())
time.Sleep(5 * time.Millisecond)
waitForRevalidationPing(t, transport, tab, n2.ID()) waitForRevalidationPing(t, transport, tab, n2.ID())
intable := tab.getNode(id) intable := tab.getNode(id)