From 40a7b89c2a63114f19089ebbb59ec0c339f5f283 Mon Sep 17 00:00:00 2001 From: Norbert Orzechowicz Date: Sat, 3 Feb 2024 22:51:05 +0100 Subject: [PATCH] Fixed failing tests --- src/core/etl/tests/Flow/ETL/Tests/Double/CacheSpy.php | 2 +- .../etl/tests/Flow/ETL/Tests/Integration/DataFrame/SortTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/etl/tests/Flow/ETL/Tests/Double/CacheSpy.php b/src/core/etl/tests/Flow/ETL/Tests/Double/CacheSpy.php index 0edd48740..0aa3e2637 100644 --- a/src/core/etl/tests/Flow/ETL/Tests/Double/CacheSpy.php +++ b/src/core/etl/tests/Flow/ETL/Tests/Double/CacheSpy.php @@ -45,7 +45,7 @@ public function clears() : int public function has(string $id) : bool { - if (!\array_key_exists($id, $this->reads)) { + if (\array_key_exists($id, $this->reads)) { return $this->reads[$id] > 0; } diff --git a/src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/SortTest.php b/src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/SortTest.php index 702642109..d786a99f4 100644 --- a/src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/SortTest.php +++ b/src/core/etl/tests/Flow/ETL/Tests/Integration/DataFrame/SortTest.php @@ -38,7 +38,7 @@ public function test_etl_sort_at_disk_in_memory() : void // 50 tmp caches // 1 sorted cache // 1 extracted cache - $this->assertSame(53, $cacheSpy->clears()); + $this->assertSame(52, $cacheSpy->clears()); } public function test_etl_sort_by_in_memory() : void