diff --git a/test/tap/tests/test_unsupported_queries-t.cpp b/test/tap/tests/test_unsupported_queries-t.cpp index e0e9b42ea..2c02045ef 100644 --- a/test/tap/tests/test_unsupported_queries-t.cpp +++ b/test/tap/tests/test_unsupported_queries-t.cpp @@ -283,7 +283,8 @@ void helper_test_load_data_local_infile( } // Check that the data has actually been loaded to the database - int myerr = mysql_query(proxysql, "SELECT * FROM test.load_data_local"); + // NOTE: Specifically target 'hostgroup=0' to avoid replication lag. + int myerr = mysql_query(proxysql, "SELECT * /*+ ;hostgroup=0 */ FROM test.load_data_local"); if (myerr) { diag( "Query 'SELECT * FROM test.load_data_local' for table preparation failed"