summaryrefslogtreecommitdiff
path: root/mysql-test/suite
diff options
context:
space:
mode:
authorStepan Patryshev <stepan.patryshev@mariadb.com>2020-12-30 20:51:55 +0200
committerStepan Patryshev <stepan.patryshev@mariadb.com>2021-01-04 15:12:04 +0200
commitcd529ae8ef1ac1c46396d4cba3fcdc336cffbd96 (patch)
treeadda723eb19a2ef4f00b4651fd9ee6783fd1eaa6 /mysql-test/suite
parent608b0ee52ef3e854ce14a407e64e936adbbeba23 (diff)
downloadmariadb-git-cd529ae8ef1ac1c46396d4cba3fcdc336cffbd96.tar.gz
MDEV-24462: Added wait condition to make sure table t1 is replicated to node_2.
Diffstat (limited to 'mysql-test/suite')
-rw-r--r--mysql-test/suite/galera/t/galera_truncate.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/t/galera_truncate.test b/mysql-test/suite/galera/t/galera_truncate.test
index 79f9bad1f1b..3c3ee56a23f 100644
--- a/mysql-test/suite/galera/t/galera_truncate.test
+++ b/mysql-test/suite/galera/t/galera_truncate.test
@@ -14,6 +14,9 @@ CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) Engine=InnoDB;
INSERT INTO t1 VALUES (1);
--connection node_2
+--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t1';
+--source include/wait_condition.inc
+
TRUNCATE TABLE t1;
SELECT COUNT(*) = 0 FROM t1;