renku icon indicating copy to clipboard operation
renku copied to clipboard

Comparing lists from the search shouldn't fail due to the specific items ordering

Open lorenzo-cavazzi opened this issue 3 years ago • 0 comments

We got the following error when running the acceptance tests

Scenario: User can search for datasets - done *** FAILED ***
[info]   List("hwrmikydj xtiwj xfmniqkeE", "Moz xtiwj tfi") was not equal to List("Moz xtiwj tfi", "hwrmikydj xtiwj xfmniqkeE") (FreeTextDatasetSearchSpec.scala:53)

My understanding is that the 2 expected entries in the list were there, but the ordering was different. That shouldn't fail the test. Example: https://github.com/SwissDataScienceCenter/renku-gateway/pull/386/checks?check_run_id=2067309128 Failing line: https://github.com/SwissDataScienceCenter/renku/blob/04aae127ee43fc4e8602036e4666686bd37303f5/acceptance-tests/src/test/scala/ch/renku/acceptancetests/FreeTextDatasetSearchSpec.scala#L53

lorenzo-cavazzi avatar Mar 09 '21 15:03 lorenzo-cavazzi