let's use Nt for EventQueue in unit tests same as prod code
This commit is contained in:
parent
3de9a73cfe
commit
9226101732
|
@ -22,6 +22,6 @@ void * action_s::getArgument() const {
|
|||
|
||||
#if EFI_UNIT_TEST
|
||||
efitick_t scheduling_s::getMomentUs() {
|
||||
return momentX;
|
||||
return NT2US(momentX);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -29,7 +29,7 @@ void TestExecutor::scheduleForLater(const char *msg, scheduling_s *scheduling, i
|
|||
}
|
||||
|
||||
int TestExecutor::executeAll(efitimeus_t nowUs) {
|
||||
return schedulingQueue.executeAll(nowUs);
|
||||
return schedulingQueue.executeAll(US2NT(nowUs));
|
||||
}
|
||||
|
||||
void TestExecutor::clear() {
|
||||
|
@ -62,7 +62,7 @@ void TestExecutor::scheduleByTimestamp(const char *msg, scheduling_s *scheduling
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue