Skip to content

Commit

Permalink
Simplified FileBackedValueTest
Browse files Browse the repository at this point in the history
Unfortunately, the previous test was non-deterministic. In the end, at the very least this tests reading and writing.
  • Loading branch information
PrinsINT committed Jun 19, 2024
1 parent 912e257 commit ef83671
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,5 @@ internal class FileBackedValueTest {
assertEquals("a string", fbv.read<String>())
fbv.modify<String> { "some characters" }
assertEquals("some characters", fbv.read<String>())

// Try to force some concurrent modifications
GlobalScope.launch { for (i in 0..100) fbv.modify<String> { "some characters" } }
for (i in 0..10) {
fbv.modify<String> { "some characters" }
fbv.read<String>()
}
assertEquals("some characters", fbv.read<String>())
}
}

0 comments on commit ef83671

Please sign in to comment.