This is an automated email from the ASF dual-hosted git repository.
zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 41a2f421d29 Ignore the data source name order at scaling IT (#18410)
41a2f421d29 is described below
commit 41a2f421d29ad7d29c2e84109dc5be5fe32c989a
Author: azexcy <[email protected]>
AuthorDate: Fri Jun 17 16:13:47 2022 +0800
Ignore the data source name order at scaling IT (#18410)
---
.../integration/data/pipeline/cases/base/BaseITCase.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
index dd43262ee17..ab582eda3df 100644
---
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
+++
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/base/BaseITCase.java
@@ -51,6 +51,7 @@ import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Arrays;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -313,7 +314,8 @@ public abstract class BaseITCase {
protected void assertPreviewTableSuccess(final String tableName, final
List<String> expect) {
List<Map<String, Object>> actualResults =
queryForListWithLog(String.format("PREVIEW SELECT COUNT(1) FROM %s",
tableName));
- List<String> dataSourceNames = actualResults.stream().map(each ->
String.valueOf(each.get("data_source_name"))).collect(Collectors.toList());
+ List<String> dataSourceNames = actualResults.stream().map(each ->
String.valueOf(each.get("data_source_name"))).sorted().collect(Collectors.toList());
+ Collections.sort(expect);
assertThat(dataSourceNames, is(expect));
}