From commits-return-44732-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Mon Jun 7 12:48:32 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 1052D18064E for ; Mon, 7 Jun 2021 14:48:32 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 490243F0ED for ; Mon, 7 Jun 2021 12:48:31 +0000 (UTC) Received: (qmail 35809 invoked by uid 500); 7 Jun 2021 12:48:30 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 35781 invoked by uid 99); 7 Jun 2021 12:48:30 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2021 12:48:30 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 1A70281A88; Mon, 7 Jun 2021 12:48:30 +0000 (UTC) Date: Mon, 07 Jun 2021 12:48:31 +0000 To: "commits@nifi.apache.org" Subject: [nifi-minifi-cpp] 02/02: MINIFICPP-1583 windows build fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: aboda@apache.org In-Reply-To: <162307010990.5127.16708339700318257035@gitbox.apache.org> References: <162307010990.5127.16708339700318257035@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: nifi-minifi-cpp X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Rev: 33d65edb3f005a17f3edbfd6fdcf9401605da568 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20210607124830.1A70281A88@gitbox.apache.org> 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 AuthorDate: Fri Jun 4 17:59:39 2021 +0200 MINIFICPP-1583 windows build fix Signed-off-by: Arpad Boda 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)); } }