diff --git a/mysql-test/t/default_debug.test b/mysql-test/t/default_debug.test
index a4f6532403bdf190fbd9dc546c1158c088060795..cdde26569ca159da2277e93a7228a7e0dfd46f5c 100644
--- a/mysql-test/t/default_debug.test
+++ b/mysql-test/t/default_debug.test
@@ -11,7 +11,7 @@ select a,b,default(b) from t1;
 set debug_sync='after_Item_default_value_calculate WAIT_FOR go';
 send select a,b,default(b) from t1;
 connection default;
-let $wait_condition=select count(*) from information_schema.processlist where s
+let $wait_condition=select count(*) from information_schema.processlist where state like 'debug sync%';
 source include/wait_condition.inc;
 set debug_sync='ha_write_row_start SIGNAL go';
 insert t1 values (100,default(b));