hardware continues integration needs a high RPM high tooth count test case

#1351
This commit is contained in:
rusefi 2020-04-24 01:33:37 -04:00
parent 04613f1707
commit c1677f2daf
2 changed files with 6 additions and 4 deletions

View File

@ -84,7 +84,7 @@ public class AutoTest {
changeRpm(900); changeRpm(900);
// TODO: we shall get this RPM higher! // TODO: we shall get this RPM higher!
// first let's get to expected RPM // first let's get to expected RPM
assertRpmDoesNotJump(2000, 4, 30, FAIL); assertRpmDoesNotJump(3000, 15, 30, FAIL);
} }
private static void testV12() { private static void testV12() {
@ -92,7 +92,7 @@ public class AutoTest {
changeRpm(700); changeRpm(700);
// TODO: we shall get this RPM higher! // TODO: we shall get this RPM higher!
// first let's get to expected RPM // first let's get to expected RPM
assertRpmDoesNotJump(1200, 4, 30, FAIL); assertRpmDoesNotJump(1200, 15, 30, FAIL);
} }
public static void assertRpmDoesNotJump(int rpm, int settleTime, int testDuration, Function<String, Object> callback) { public static void assertRpmDoesNotJump(int rpm, int settleTime, int testDuration, Function<String, Object> callback) {

View File

@ -149,8 +149,10 @@ public class AnyCommand {
private static void handleStimulationSelfCheck(String rawCommand) { private static void handleStimulationSelfCheck(String rawCommand) {
String[] parts = rawCommand.split(" ", 4); String[] parts = rawCommand.split(" ", 4);
if (parts.length != 3) if (parts.length != 4) {
MessagesCentral.getInstance().postMessage(AnyCommand.class, "Invalid command length " + parts);
return; // let's ignore invalid command return; // let's ignore invalid command
}
int rpm = Integer.parseInt(parts[1]); int rpm = Integer.parseInt(parts[1]);
int settleTime = Integer.parseInt(parts[2]); int settleTime = Integer.parseInt(parts[2]);
int durationTime = Integer.parseInt(parts[3]); int durationTime = Integer.parseInt(parts[3]);