nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ab...@apache.org
Subject [nifi-minifi-cpp] 02/02: MINIFICPP-1583 windows build fix
Date Mon, 07 Jun 2021 12:48:31 GMT
This is an automated email from the ASF dual-hosted git repository.

aboda pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 33d65edb3f005a17f3edbfd6fdcf9401605da568
Author: Martin Zink <martin.zink@protonmail.com>
AuthorDate: Fri Jun 4 17:59:39 2021 +0200

    MINIFICPP-1583 windows build fix
    
    Signed-off-by: Arpad Boda <aboda@apache.org>
    
    This closes #1100
---
 extensions/pdh/tests/PerformanceDataMonitorTests.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/pdh/tests/PerformanceDataMonitorTests.cpp b/extensions/pdh/tests/PerformanceDataMonitorTests.cpp
index b3d5acd..cb49bab 100644
--- a/extensions/pdh/tests/PerformanceDataMonitorTests.cpp
+++ b/extensions/pdh/tests/PerformanceDataMonitorTests.cpp
@@ -250,16 +250,16 @@ TEST_CASE("PerformanceDataMonitorDecimalPlacesPropertyTest", "[performancedatamo
   {
     PerformanceDataMonitorTester tester;
     tester.setPerformanceMonitorProperty(PerformanceDataMonitor::DecimalPlaces, "asd");
-    REQUIRE_THROWS_WITH(tester.runProcessors(), "General Operation: Invalid conversion to
int64_t for asd");
+    REQUIRE_THROWS_WITH(tester.runWithRetries([]{ return true; }, 1), "General Operation:
Invalid conversion to int64_t for asd");
   }
   {
     PerformanceDataMonitorTester tester;
     tester.setPerformanceMonitorProperty(PerformanceDataMonitor::DecimalPlaces, "1234586123");
-    REQUIRE_THROWS_WITH(tester.runProcessors(), "Process Schedule Operation: PerformanceDataMonitor
Decimal Places is out of range");
+    REQUIRE_THROWS_WITH(tester.runWithRetries([]{ return true; }, 1), "Process Schedule Operation:
PerformanceDataMonitor Decimal Places is out of range");
   }
   {
     PerformanceDataMonitorTester tester;
     tester.setPerformanceMonitorProperty(PerformanceDataMonitor::DecimalPlaces, "");
-    REQUIRE_NOTHROW(tester.runProcessors());
+    REQUIRE_NOTHROW(tester.runWithRetries([]{ return true; }, 1));
   }
 }

Mime
View raw message