diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 5a7980e3..ba5e70a1 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -30,6 +30,7 @@ Development - |version| Custom code should update ``min_shadow_factor`` to ``min_illumination_factor`` and ``shadowFactor`` to ``illuminationFactor`` where these names are referenced. * Fix target angle rate observation. ``r_BN_P`` is now correctly used instead of ``v_BN_P``. +* Relax ``TestAttitudeSetpoint`` test tolerance to account for different initial conditions and avoid eventual failures. .. warning:: diff --git a/tests/integration/act/test_int_actions_continuous.py b/tests/integration/act/test_int_actions_continuous.py index 54a7095f..a2f001c2 100644 --- a/tests/integration/act/test_int_actions_continuous.py +++ b/tests/integration/act/test_int_actions_continuous.py @@ -82,7 +82,7 @@ class AttitudeSat(sats.Satellite): dyn_type = dyn.DynamicsModel fsw_type = fsw.FSWModel observation_spec = [obs.SatProperties(dict(prop="sigma_BN"))] - action_spec = [act.AttitudeSetpoint(control_period=360.0)] + action_spec = [act.AttitudeSetpoint(control_period=540.0)] env = gym.make( "SatelliteTasking-v1", @@ -94,4 +94,4 @@ class AttitudeSat(sats.Satellite): env.reset() observation, _, _, _, _ = env.step([0.1, 0.2, 0.3]) - assert np.allclose(observation, np.array([0.1, 0.2, 0.3]), atol=1e-4) + assert np.allclose(observation, np.array([0.1, 0.2, 0.3]), atol=2e-3)