reducing crazy in unit tests

This commit is contained in:
Andrey 2021-10-01 22:29:44 -04:00
parent fe2f857652
commit b71d3c6111
2 changed files with 8 additions and 3 deletions

View File

@ -69,6 +69,11 @@ public:
void firePrimaryTriggerFall();
void fireTriggerEvents(int count);
void fireTriggerEventsWithDuration(float delayMs);
/**
* todo: better method name since this method executes events in the FUTURE
* looks like such a method should be used only in some pretty narrow circumstances
* a healthy test should probably use executeActions instead?
*/
void clearQueue();
scheduling_s * assertEvent5(const char *msg, int index, void *callback, efitime_t expectedTimestamp);

View File

@ -332,7 +332,7 @@ TEST(misc, testRpmCalculator) {
ASSERT_EQ( 15, engine->triggerCentral.triggerState.getCurrentIndex()) << "index #1";
eth.clearQueue();
eth.executeActions();
// debugSignalExecutor = true;
@ -944,7 +944,7 @@ TEST(big, testTwoWireBatch) {
eth.fireTriggerEventsWithDuration(20);
// still no RPM since need to cycles measure cycle duration
eth.fireTriggerEventsWithDuration(20);
eth.clearQueue();
eth.executeActions();
/**
* Trigger up - scheduling fuel for full engine cycle
@ -972,7 +972,7 @@ TEST(big, testSequential) {
eth.fireTriggerEventsWithDuration(20);
// still no RPM since need to cycles measure cycle duration
eth.fireTriggerEventsWithDuration(20);
eth.clearQueue();
eth.executeActions();
/**
* Trigger up - scheduling fuel for full engine cycle