Fix flaky tungsten test using comparator (#8232)

This commit is contained in:
rRajivramachandran 2023-11-14 03:17:32 -06:00 committed by GitHub
parent df4cd2aae4
commit 96b07d797b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1360,6 +1360,7 @@ public class TungstenApiTest {
s_logger.debug("Check if policy was listed all in Tungsten-Fabric");
List<? extends ApiObjectBase> policyList3 = tungstenApi.listTungstenPolicy(projectUuid, null);
policyList3.sort(comparator);
assertEquals(policyList1, policyList3);
s_logger.debug("Check if policy was listed with uuid in Tungsten-Fabric");
@ -1383,6 +1384,7 @@ public class TungstenApiTest {
s_logger.debug("Check if network was listed all in Tungsten-Fabric");
List<? extends ApiObjectBase> networkList3 = tungstenApi.listTungstenNetwork(projectUuid, null);
networkList3.sort(comparator);
assertEquals(networkList1, networkList3);
s_logger.debug("Check if network policy was listed with uuid in Tungsten-Fabric");