Skip to content

Commit 35cdb85

Browse files
fix tests
1 parent faafefd commit 35cdb85

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ def __process_sensors_and_controllers_at_current_node(self, node, phase):
875875
self.y_sol,
876876
self.solution,
877877
self.sensors,
878+
self.env,
878879
)
879880

880881
def __measure_sensors(self, component_sensors, u_dot, t=None, y_sol=None):
@@ -1296,6 +1297,7 @@ def __process_overshootable_nodes(self, phase, phase_index, node_index):
12961297
overshootable_node.y_sol,
12971298
self.solution,
12981299
self.sensors,
1300+
self.env,
12991301
)
13001302

13011303
# Process sensors at overshootable node

tests/integration/simulation/test_flight.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ def controller_test_environment_access( # pylint: disable=unused-argument
806806

807807
# Verify flight completed
808808
assert flight.t_final > 0
809+
assert flight.all_info() is None
809810

810811
# Verify all environment methods were successfully called
811812
assert all(methods_called.values()), f"Not all methods called: {methods_called}"

0 commit comments

Comments
 (0)