-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I suspect we need to increase the send_and_assert_event
max_delay
arg to 10
sec
=================================== FAILURES ===================================
__________________________ test_03_time_not_set_event __________________________
fprime_test_api = <fprime_gds.common.testing_fw.api.IntegrationTestAPI object at 0x7f06903d8440>
start_gds = None
def test_03_time_not_set_event(fprime_test_api: IntegrationTestAPI, start_gds):
"""Test that a TimeNotSet event is emitted when setting time with invalid data"""
# List of events we expect to see
events: list[event_predicate] = [
fprime_test_api.get_event_pred(f"{rtcManager}.YearValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.MonthValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.DayValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.HourValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.MinuteValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.SecondValidationFailed"),
fprime_test_api.get_event_pred(f"{rtcManager}.TimeNotSet"),
fprime_test_api.get_event_pred(f"{cmdDispatch}.OpCodeDispatched"),
fprime_test_api.get_event_pred(f"{cmdDispatch}.OpCodeError"),
]
# Clear histories
fprime_test_api.clear_histories()
# Send command to set the time with invalid data
time_data = dict(
Year=0,
Month=12345,
Day=12345,
Hour=12345,
Minute=12345,
Second=12345,
)
time_data_str = json.dumps(time_data)
> fprime_test_api.send_and_assert_event(
f"{rtcManager}.TIME_SET", [time_data_str], events, timeout=10
)
FprimeZephyrReference/test/int/rtc_test.py:153:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
V0.2 | Flight Ready Core Features