Skip to content

Commit

Permalink
Fix timeout in test
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Apr 17, 2024
1 parent 14ebd42 commit 5ba0e45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NonEmptyListTest {
@Test
fun iterableToNonEmptyListOrNullShouldWorkCorrectlyWhenTheIterableStartsWithOrContainsNull() = runTest {
checkAll(Arb.list(Arb.int())) { list ->
checkAll(Arb.int(min = 0, max = list.size)) { ix ->
checkAll(iterations = 5, Arb.int(min = 0, max = list.size)) { ix ->
val mutableList: MutableList<Int?> = list.toMutableList()
mutableList.add(ix, null)
mutableList.toNonEmptyListOrNull().shouldNotBeNull() shouldBe mutableList
Expand Down

0 comments on commit 5ba0e45

Please sign in to comment.