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 <[email protected]>
AuthorDate: Fri Jun 4 17:59:39 2021 +0200

    MINIFICPP-1583 windows build fix
    
    Signed-off-by: Arpad Boda <[email protected]>
    
    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));
   }
 }

Reply via email to