From b071f191f7831770f8efd845e72bcdb267b4e25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Tue, 12 Oct 2021 17:10:11 +0200 Subject: [PATCH] Added an extra 'sleep' for first section of 'mysql-mirror1' test to avoid timing issues --- test/tap/tests/mysql-mirror1-t.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tap/tests/mysql-mirror1-t.cpp b/test/tap/tests/mysql-mirror1-t.cpp index 2c4a3f9b2..42e00c872 100644 --- a/test/tap/tests/mysql-mirror1-t.cpp +++ b/test/tap/tests/mysql-mirror1-t.cpp @@ -127,6 +127,8 @@ int main(int argc, char** argv) { } int rows_read = 0; + sleep(1); // some INSERT may still be running + // at this point the table sbtest should have 600 rows: // 300 rows from normal insert, and 100 rows from mirror rc = run_q(conns[0], "SELECT * FROM test.sbtest1");