[ 
https://issues.apache.org/jira/browse/CAMEL-22099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953364#comment-17953364
 ] 

Aurélien Pupier commented on CAMEL-22099:
-----------------------------------------

either the test should not expect to receive everything in the correct order or 
the collection in the test does not respect the order or there is a bug in the 
runtime as based on the name of the test it expects to sort messages so to 
receive them in a specific order

> Fix issue related to flaky test 
> Sqs2ConsumerTest.shouldRequest66MessagesWithSevenReceiveRequestSortedBySenderId
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-22099
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22099
>             Project: Camel
>          Issue Type: Test
>          Components: camel-aws2-sqs
>    Affects Versions: 4.11.0
>            Reporter: Aurélien Pupier
>            Priority: Major
>
> {noformat}
> Expecting actual:
>   ["0",
>     "1",
>     "2",
>     "3",
>     "4",
>     "5",
>     "6",
>     "7",
>     "8",
>     "9",
>     "10",
>     "11",
>     "12",
>     "13",
>     "14",
>     "15",
>     "16",
>     "17",
>     "18",
>     "19",
>     "20",
>     "29",
>     "31",
>     "33",
>     "34",
>     "35",
>     "36",
>     "37",
>     "38",
>     "39",
>     "21",
>     "22",
>     "23",
>     "24",
>     "25",
>     "26",
>     "27",
>     "28",
>     "30",
>     "32",
>     "40",
>     "41",
>     "42",
>     "43",
>     "44",
>     "45",
>     "46",
>     "47",
>     "48",
>     "49",
>     "50",
>     "51",
>     "52",
>     "53",
>     "54",
>     "55",
>     "56",
>     "57",
>     "58",
>     "59",
>     "60",
>     "61",
>     "62",
>     "63",
>     "64",
>     "65"]
> to contain exactly (and in same order):
>   ["0",
>     "1",
>     "2",
>     "3",
>     "4",
>     "5",
>     "6",
>     "7",
>     "8",
>     "9",
>     "10",
>     "11",
>     "12",
>     "13",
>     "14",
>     "15",
>     "16",
>     "17",
>     "18",
>     "19",
>     "20",
>     "21",
>     "22",
>     "23",
>     "24",
>     "25",
>     "26",
>     "27",
>     "28",
>     "29",
>     "30",
>     "31",
>     "32",
>     "33",
>     "34",
>     "35",
>     "36",
>     "37",
>     "38",
>     "39",
>     "40",
>     "41",
>     "42",
>     "43",
>     "44",
>     "45",
>     "46",
>     "47",
>     "48",
>     "49",
>     "50",
>     "51",
>     "52",
>     "53",
>     "54",
>     "55",
>     "56",
>     "57",
>     "58",
>     "59",
>     "60",
>     "61",
>     "62",
>     "63",
>     "64",
>     "65"]
> but there were differences at these indexes:
>   - element at index 21: expected "21" but was "29"
>   - element at index 22: expected "22" but was "31"
>   - element at index 23: expected "23" but was "33"
>   - element at index 24: expected "24" but was "34"
>   - element at index 25: expected "25" but was "35"
>   - element at index 26: expected "26" but was "36"
>   - element at index 27: expected "27" but was "37"
>   - element at index 28: expected "28" but was "38"
>   - element at index 29: expected "29" but was "39"
>   - element at index 30: expected "30" but was "21"
>   - element at index 31: expected "31" but was "22"
>   - element at index 32: expected "32" but was "23"
>   - element at index 33: expected "33" but was "24"
>   - element at index 34: expected "34" but was "25"
>   - element at index 35: expected "35" but was "26"
>   - element at index 36: expected "36" but was "27"
>   - element at index 37: expected "37" but was "28"
>   - element at index 38: expected "38" but was "30"
>   - element at index 39: expected "39" but was "32"
> at 
> org.apache.camel.component.aws2.sqs.Sqs2ConsumerTest.shouldRequest66MessagesWithSevenReceiveRequestSortedBySenderId(Sqs2ConsumerTest.java:403)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to