[fix](case) Add sync to test case (#29034)
This commit is contained in:
@ -152,6 +152,8 @@ suite("test_count_on_index_2", "p0"){
|
||||
load_httplogs_data.call(indexTbName1, indexTbName1, 'true', 'json', 'documents-1000.json')
|
||||
load_httplogs_data.call(indexTbName2, indexTbName2, 'true', 'json', 'documents-1000.json')
|
||||
|
||||
sql "sync"
|
||||
|
||||
qt_sql """ select count() from ${indexTbName1} where `@timestamp` >= 893964736 and `@timestamp` <= 893966453; """
|
||||
qt_sql """ select count() from ${indexTbName2} where `@timestamp` >= 893964736 and `@timestamp` <= 893966453; """
|
||||
|
||||
|
||||
@ -78,6 +78,8 @@ suite("test_index_match_phrase_prefix", "p0"){
|
||||
try {
|
||||
load_httplogs_data.call(indexTbName1, 'test_index_match_phrase_prefix', 'true', 'json', 'documents-1000.json')
|
||||
|
||||
sql "sync"
|
||||
|
||||
qt_sql """ select count() from test_index_match_phrase_prefix where request match_phrase_prefix 'ima'; """
|
||||
qt_sql """ select count() from test_index_match_phrase_prefix where request like '%ima%'; """
|
||||
|
||||
|
||||
@ -78,6 +78,8 @@ suite("test_index_match_regexp", "p0"){
|
||||
try {
|
||||
load_httplogs_data.call(indexTbName1, 'test_index_match_regexp', 'true', 'json', 'documents-1000.json')
|
||||
|
||||
sql "sync"
|
||||
|
||||
qt_sql """ select count() from test_index_match_regexp where request match_regexp '^h'; """
|
||||
qt_sql """ select count() from test_index_match_regexp where request match_regexp '^team'; """
|
||||
qt_sql """ select count() from test_index_match_regexp where request match_regexp 's\$'; """
|
||||
|
||||
Reference in New Issue
Block a user