hardware continues integration needs a high RPM high tooth count test case #1351
This commit is contained in:
parent
3e5b8727ed
commit
1bf21deb2a
|
@ -74,23 +74,23 @@ public class AutoTest {
|
||||||
|
|
||||||
private static void testVW_60_2() {
|
private static void testVW_60_2() {
|
||||||
setEngineType(32);
|
setEngineType(32);
|
||||||
|
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
|
||||||
int rpm = 2000;
|
assertRpmDoesNotJump(2000);
|
||||||
changeRpm(rpm);
|
|
||||||
assertRpmDoesNotJump(rpm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void testV12() {
|
private static void testV12() {
|
||||||
setEngineType(40);
|
setEngineType(40);
|
||||||
|
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
|
||||||
int rpm = 2100;
|
assertRpmDoesNotJump(1700);
|
||||||
changeRpm(rpm);
|
|
||||||
assertRpmDoesNotJump(rpm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void assertRpmDoesNotJump(int rpm) {
|
private static void assertRpmDoesNotJump(int rpm) {
|
||||||
|
changeRpm(rpm);
|
||||||
|
sleep(4);
|
||||||
AtomicReference failure = new AtomicReference();
|
AtomicReference failure = new AtomicReference();
|
||||||
SensorCentral.SensorListener listener = new SensorCentral.SensorListener() {
|
SensorCentral.SensorListener listener = new SensorCentral.SensorListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue