Skip to content

Commit

Permalink
Battery: fix JUnit test
Browse files Browse the repository at this point in the history
Because of added `break` to avoid fallthrough, GoRunning now applies all checks properly, which takes one more Cycle:
d2eda2a#diff-fcb90384c5e6cfccb066d6a4aebf7f6f55174258152a200723743235891325bcR51
  • Loading branch information
sfeilmeier committed Jan 11, 2022
1 parent 55502a5 commit 8927408
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void test() throws Exception {
.next(new TestCase("in WAIT_FOR_BMS_CONTROL") //
.output(STATE_MACHINE, StateMachine.State.GO_RUNNING))//
.next(new TestCase("in WAIT_FOR_BMS_CONTROL")//
.input(BMS_CONTROL, BmsControl.SWITCHED_ON) //
.input(BMS_CONTROL, BmsControl.SWITCHED_ON)) //
.next(new TestCase("in WAIT_FOR_BMS_CONTROL")//
.output(BATTERY_RELAY, false)) //
.next(new TestCase("in WAIT_FOR_SWITCH_OFF") //
.input(BATTERY_RELAY, false) //
Expand Down

0 comments on commit 8927408

Please sign in to comment.