From f7a2a9bc19da81a46a4414a60e4bbce0d978e021 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Mon, 23 Oct 2023 15:07:25 +0200 Subject: [PATCH] Fix tests --- fmusim/fmusim_fmi3_cs.c | 2 +- tests/test_fmusim.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fmusim/fmusim_fmi3_cs.c b/fmusim/fmusim_fmi3_cs.c index 0143c41e..b809dc89 100644 --- a/fmusim/fmusim_fmi3_cs.c +++ b/fmusim/fmusim_fmi3_cs.c @@ -167,7 +167,7 @@ FMIStatus simulateFMI3CS(FMIInstance* S, )); if (earlyReturn && !settings->earlyReturnAllowed) { - FMILogError("FMU returned early from fmi3DoStep() but early return is not allowed."); + FMILogError("The FMU returned early from fmi3DoStep() but early return is not allowed."); status = FMIError; goto TERMINATE; } diff --git a/tests/test_fmusim.py b/tests/test_fmusim.py index db42e2c0..141f4d94 100644 --- a/tests/test_fmusim.py +++ b/tests/test_fmusim.py @@ -299,10 +299,10 @@ def test_event_mode_time_events(): interface_type='cs', test_name='test_event_mode_input_events', args=[ - '--event-mode-used', '--stop-time', '5', '--output-interval', '2.5', - '--event-mode-used' + '--event-mode-used', + '--early-return-allowed' ], model='Stair.fmu' )