let's use Nt for EventQueue in unit tests same as prod code

This commit is contained in:
rusefi 2024-04-30 17:01:27 -04:00 committed by rusefillc
parent 3de9a73cfe
commit 9226101732
2 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,6 @@ void * action_s::getArgument() const {
#if EFI_UNIT_TEST #if EFI_UNIT_TEST
efitick_t scheduling_s::getMomentUs() { efitick_t scheduling_s::getMomentUs() {
return momentX; return NT2US(momentX);
} }
#endif #endif

View File

@ -29,7 +29,7 @@ void TestExecutor::scheduleForLater(const char *msg, scheduling_s *scheduling, i
} }
int TestExecutor::executeAll(efitimeus_t nowUs) { int TestExecutor::executeAll(efitimeus_t nowUs) {
return schedulingQueue.executeAll(nowUs); return schedulingQueue.executeAll(US2NT(nowUs));
} }
void TestExecutor::clear() { void TestExecutor::clear() {
@ -62,7 +62,7 @@ void TestExecutor::scheduleByTimestamp(const char *msg, scheduling_s *scheduling
return; return;
} }
schedulingQueue.insertTask(scheduling, timeUs, action); schedulingQueue.insertTask(scheduling, US2NT(timeUs), action);
} }
void TestExecutor::scheduleByTimestampNt(const char *msg, scheduling_s* scheduling, efitick_t timeNt, action_s action) { void TestExecutor::scheduleByTimestampNt(const char *msg, scheduling_s* scheduling, efitick_t timeNt, action_s action) {