diff --git a/deprecated/stately-collections/src/commonTest/kotlin/co/touchlab/stately/collections/SharedHashMapTest.kt b/deprecated/stately-collections/src/commonTest/kotlin/co/touchlab/stately/collections/SharedHashMapTest.kt index a6b7838..93a28b2 100644 --- a/deprecated/stately-collections/src/commonTest/kotlin/co/touchlab/stately/collections/SharedHashMapTest.kt +++ b/deprecated/stately-collections/src/commonTest/kotlin/co/touchlab/stately/collections/SharedHashMapTest.kt @@ -135,7 +135,7 @@ class SharedHashMapTest { val m = SharedHashMap() val random = Random - for (i in 0 until 1_000) { + for (i in 0 until 500) { val rand = random.nextInt() assertEquals(m.rehash(rand), m.rehash(rand)) } @@ -145,7 +145,7 @@ class SharedHashMapTest { fun mtAddRemove() { try { println("mtAddRemove Start") - val LOOPS = 1_000 + val LOOPS = 500 val ops = ThreadOperations { SharedHashMap() } val removeOps = ThreadOperations { SharedHashMap() } val m = SharedHashMap() @@ -179,7 +179,7 @@ class SharedHashMapTest { val ops = ThreadOperations { } val removeOps = ThreadOperations { } - val LOOPS = 2_000 + val LOOPS = 500 for (i in 0 until LOOPS) { val key = "key $i" ops.exe { map.put(BadHashKey(key), MapData("val $i")) }