Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix: fix test by using disorder content equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Nambers committed Nov 2, 2023
1 parent 57cd62a commit 8cc9f37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kotlin/shared/src/test/kotlin/events/OperationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ class OperationTest : TestBase() {
}
member.says("groupFileListFolder")
waitUntilEnd()
val expected = listOf("[[\"/a/micb.amr\", \"${file[1].id}\"],[\"/a/mic.amr\", \"${file[0].id}\"]]")
val logs = TestUtils.logList.filter {
it.contains("fileList:")
}.map {
it.substringAfter("fileList:")
}.filterNot {
it in expected
}
assertContentEquals(
listOf("[[\"/a/micb.amr\", \"${file[1].id}\"],[\"/a/mic.amr\", \"${file[0].id}\"]]"),
logs
)
assertContentEquals(emptyList(), logs)
}

@Test
Expand Down

0 comments on commit 8cc9f37

Please sign in to comment.