From 2b02a2244864810466897e05eb97934e0476b122 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 2 Aug 2024 22:41:17 +0600 Subject: [PATCH] small improvement of test data in Full Cache tests --- .../src/commonTest/kotlin/full/FullCRUDCacheRepoTests.kt | 4 ++-- .../commonTest/kotlin/full/FullKeyValueCacheRepoTests.kt | 4 ++-- .../commonTest/kotlin/full/FullKeyValuesCacheRepoTests.kt | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/repos/cache/src/commonTest/kotlin/full/FullCRUDCacheRepoTests.kt b/repos/cache/src/commonTest/kotlin/full/FullCRUDCacheRepoTests.kt index b76b6f77481..358294c81eb 100644 --- a/repos/cache/src/commonTest/kotlin/full/FullCRUDCacheRepoTests.kt +++ b/repos/cache/src/commonTest/kotlin/full/FullCRUDCacheRepoTests.kt @@ -23,10 +23,10 @@ class FullCRUDCacheRepoTests { @Test fun creatingWorksProperly() = runTest { val testData = (0 until 1000).map { - (it.toString() + uuid4().toString()) + ("$it-" + uuid4().toString()) } val updatedTestData = (0 until 1000).map { - (it.toString() + uuid4().toString()) + ("$it-" + uuid4().toString()) } val kvCache = MapKeyValueRepo() val crudRepo = MapCRUDRepo( diff --git a/repos/cache/src/commonTest/kotlin/full/FullKeyValueCacheRepoTests.kt b/repos/cache/src/commonTest/kotlin/full/FullKeyValueCacheRepoTests.kt index 8a541608811..0080570b439 100644 --- a/repos/cache/src/commonTest/kotlin/full/FullKeyValueCacheRepoTests.kt +++ b/repos/cache/src/commonTest/kotlin/full/FullKeyValueCacheRepoTests.kt @@ -13,10 +13,10 @@ class FullKeyValueCacheRepoTests { @Test fun creatingWorksProperly() = runTest { val testData = (0 until 1000).associate { - (it.toString() + uuid4().toString()) to uuid4().toString() + ("$it-" + uuid4().toString()) to "$it-" + uuid4().toString() } val updatedTestData = testData.keys.associateWith { - uuid4().toString() + "$it-" + uuid4().toString() } val kvCache = MapKeyValueRepo() val kvRepo = MapKeyValueRepo() diff --git a/repos/cache/src/commonTest/kotlin/full/FullKeyValuesCacheRepoTests.kt b/repos/cache/src/commonTest/kotlin/full/FullKeyValuesCacheRepoTests.kt index ce37c92233d..4a83b6874e0 100644 --- a/repos/cache/src/commonTest/kotlin/full/FullKeyValuesCacheRepoTests.kt +++ b/repos/cache/src/commonTest/kotlin/full/FullKeyValuesCacheRepoTests.kt @@ -12,17 +12,17 @@ class FullKeyValuesCacheRepoTests { @Test fun creatingWorksProperly() = runTest(timeout = 1.days) { val testData = (0 until 1000).associate { - (it.toString() + uuid4().toString()) to (0 until 1000).map { - uuid4().toString() + ("$it-" + uuid4().toString()) to (0 until 1000).map { + "$it-" + uuid4().toString() }.sorted() } val updatedTestData = testData.keys.associateWith { (0 until 1000).map { - uuid4().toString() + "$it-" + uuid4().toString() }.sorted() } val addedData = testData.keys.associateWith { - uuid4().toString() + "$it-" + uuid4().toString() } val kvCache = MapKeyValueRepo>() val kvRepo = MapKeyValuesRepo()