Skip to content

Commit b56be12

Browse files
committed
Loose the test condition
1 parent 498d387 commit b56be12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_tests/cpu/propagator/propagator.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,12 @@ TEST_P(PropagatorWithRkStepperDirectNavigatorWireChamber, direct_navigator) {
763763
// The initial momentum should be higher than or equal to the
764764
// momentum at the last surface
765765
ASSERT_GE(track.p(q), state._stepping.bound_params().p(q));
766-
ASSERT_FLOAT_EQ(
766+
ASSERT_NEAR(
767767
static_cast<float>(state._stepping.bound_params().p(q)),
768768
static_cast<float>(
769-
direct_forward_state._stepping.bound_params().p(q)));
769+
direct_forward_state._stepping.bound_params().p(q)),
770+
static_cast<float>(state._stepping.bound_params().p(q)) *
771+
1e-6f);
770772

771773
direct_propagator_t::state direct_backward_state(
772774
direct_forward_state._stepping.bound_params(), bfield, det,

0 commit comments

Comments
 (0)