Actually check the TSINIT value in TuningTests.cpp

This commit is contained in:
Vegard Kippe 2023-08-28 11:19:35 +02:00
parent 98adf5a536
commit b47324e42f

View File

@ -228,8 +228,7 @@ BOOST_AUTO_TEST_CASE(TuningTest) {
BOOST_CHECK(event.hasEvent(ScheduleEvents::TUNING_CHANGE)); BOOST_CHECK(event.hasEvent(ScheduleEvents::TUNING_CHANGE));
std::optional<double> TSINIT = tuning.TSINIT; std::optional<double> TSINIT = tuning.TSINIT;
BOOST_CHECK(TSINIT.has_value()); BOOST_CHECK_CLOSE(TSINIT.value(), 2 * Metric::Time, diff);
//BOOST_CHECK_CLOSE(TSINIT.value(), 2 * Metric::Time, diff);
BOOST_CHECK_CLOSE(schedule[timeStep].max_next_tstep(), 5*Metric::Time, diff); BOOST_CHECK_CLOSE(schedule[timeStep].max_next_tstep(), 5*Metric::Time, diff);