From ef83671b646d2a94dbee8b715e35dce4c38cb77b Mon Sep 17 00:00:00 2001 From: Vincent Prins Date: Wed, 19 Jun 2024 15:17:57 +0200 Subject: [PATCH] Simplified FileBackedValueTest Unfortunately, the previous test was non-deterministic. In the end, at the very least this tests reading and writing. --- .../test/kotlin/org/ivdnt/galahad/FileBackedValueTest.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/src/test/kotlin/org/ivdnt/galahad/FileBackedValueTest.kt b/server/src/test/kotlin/org/ivdnt/galahad/FileBackedValueTest.kt index 6b5b260..2619897 100644 --- a/server/src/test/kotlin/org/ivdnt/galahad/FileBackedValueTest.kt +++ b/server/src/test/kotlin/org/ivdnt/galahad/FileBackedValueTest.kt @@ -16,13 +16,5 @@ internal class FileBackedValueTest { assertEquals("a string", fbv.read()) fbv.modify { "some characters" } assertEquals("some characters", fbv.read()) - - // Try to force some concurrent modifications - GlobalScope.launch { for (i in 0..100) fbv.modify { "some characters" } } - for (i in 0..10) { - fbv.modify { "some characters" } - fbv.read() - } - assertEquals("some characters", fbv.read()) } } \ No newline at end of file