Skip to content

Commit

Permalink
Adds a comment explaining why we cut a string for comparison
Browse files Browse the repository at this point in the history
Fixes: SIRI-1039
  • Loading branch information
idlira committed Dec 16, 2024
1 parent 7d0a721 commit a7f240b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/kotlin/sirius/db/jdbc/SmartQueryKotlinTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ class SmartQueryKotlinTest {
)
val result = smartQueryTestChildEntity.queryList()

// Another test case will rename "Parent 3" to "Parent 3.1". Since we cannot guarantee the order in which
// they run, we strip the string to match both cases
assertEquals(
listOf("Parent 2", "Parent 3"),
result.stream().map { x -> x.name.substring(0, 8) }.collect(Collectors.toList())
Expand Down

0 comments on commit a7f240b

Please sign in to comment.