From b9e51ce6ed47d1dc12697a826b5d743e131dc18d Mon Sep 17 00:00:00 2001 From: AB019TC Date: Wed, 28 Feb 2024 16:26:54 +0200 Subject: [PATCH] Fixes #137 - applied github comment --- .../absa/atum/database/runs/GetPartitioningMeasuresTest.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningMeasuresTest.scala b/database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningMeasuresTest.scala index 6474ea990..28b7cd9d2 100644 --- a/database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningMeasuresTest.scala +++ b/database/src/test/scala/za/co/absa/atum/database/runs/GetPartitioningMeasuresTest.scala @@ -104,6 +104,7 @@ class GetPartitioningMeasuresTest extends DBTestSuite { val results = queryResult.next() assert(results.getInt("status").contains(41)) assert(results.getString("status_text").contains("The partitioning does not exist.")) + assert(!queryResult.hasNext) } } @@ -137,6 +138,7 @@ class GetPartitioningMeasuresTest extends DBTestSuite { val results = queryResult.next() assert(results.getInt("status").contains(16)) assert(results.getString("status_text").contains("No measures found for the given partitioning.")) + assert(!queryResult.hasNext) } }