From 87eb70585fa0be0fe5b0e8c65877a82a918a27f4 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Tue, 26 Jul 2022 17:36:11 +0200 Subject: [PATCH] [NO JIRA] Fix Flaky IssueDaoTest --- .../src/test/java/org/sonar/db/issue/IssueDaoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/issue/IssueDaoTest.java b/server/sonar-db-dao/src/test/java/org/sonar/db/issue/IssueDaoTest.java index 5537bbe44dd..3ebd0e7d7dc 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/issue/IssueDaoTest.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/issue/IssueDaoTest.java @@ -258,7 +258,7 @@ public class IssueDaoTest { assertThat(branchAIssuesA2) .extracting(IssueDto::getKey, IssueDto::getStatus) - .containsExactly(tuple("issueA0", STATUS_OPEN), + .containsExactlyInAnyOrder(tuple("issueA0", STATUS_OPEN), tuple("issueA1", STATUS_REVIEWED), tuple("issueA3", STATUS_RESOLVED)); @@ -275,7 +275,7 @@ public class IssueDaoTest { assertThat(branchBIssuesB2) .extracting(IssueDto::getKey, IssueDto::getStatus) - .containsExactly(tuple("issueB0", STATUS_OPEN), + .containsExactlyInAnyOrder(tuple("issueB0", STATUS_OPEN), tuple("issueB1", STATUS_RESOLVED)); } -- 2.39.5