mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-06 14:26:28 +00:00
Fix Flakiness of SearchResourceTest (#22728)
(cherry picked from commit e7249d2027d4db15a99b2b4465ca3eb02b0a2e06)
This commit is contained in:
parent
52fc776919
commit
a0050bdeb3
@ -871,7 +871,14 @@ class SearchResourceTest extends OpenMetadataApplicationTest {
|
|||||||
List<Table> tables = new ArrayList<>();
|
List<Table> tables = new ArrayList<>();
|
||||||
for (int i = 0; i < 15; i++) {
|
for (int i = 0; i < 15; i++) {
|
||||||
String minimalUUIDToBreakTies = UUID.randomUUID().toString().substring(0, 8);
|
String minimalUUIDToBreakTies = UUID.randomUUID().toString().substring(0, 8);
|
||||||
String tableName = "pagination_test_" + i + "_" + UUID.randomUUID() + minimalUUIDToBreakTies;
|
String minimalUUIDsToBreakTies2 = UUID.randomUUID().toString().substring(0, 8);
|
||||||
|
String tableName =
|
||||||
|
"pagination_test_"
|
||||||
|
+ i
|
||||||
|
+ "_"
|
||||||
|
+ UUID.randomUUID()
|
||||||
|
+ minimalUUIDToBreakTies
|
||||||
|
+ minimalUUIDsToBreakTies2;
|
||||||
CreateTable createTable =
|
CreateTable createTable =
|
||||||
tableResourceTest
|
tableResourceTest
|
||||||
.createRequest(tableName)
|
.createRequest(tableName)
|
||||||
@ -882,7 +889,7 @@ class SearchResourceTest extends OpenMetadataApplicationTest {
|
|||||||
tables.add(tableResourceTest.createEntity(createTable, ADMIN_AUTH_HEADERS));
|
tables.add(tableResourceTest.createEntity(createTable, ADMIN_AUTH_HEADERS));
|
||||||
}
|
}
|
||||||
// Wait for indexing
|
// Wait for indexing
|
||||||
TestUtils.simulateWork(15);
|
TestUtils.simulateWork(20);
|
||||||
// Test pagination consistency
|
// Test pagination consistency
|
||||||
assertDoesNotThrow(
|
assertDoesNotThrow(
|
||||||
() -> {
|
() -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user