Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a464fb4d authored by Fenglin Wu's avatar Fenglin Wu
Browse files

vibrator: turn off vibrator after testing ChangeVibrationAmplitude

Turn off vibrator explicitly after testing ChangeVibrationAmplitude.

Bug: 232319176
Test: VtsHalVibratorTargetTest
Change-Id: I482ea8266378636340c614eda832f4237d22e005
parent 3096c586
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -332,6 +332,7 @@ TEST_P(VibratorAidl, ChangeVibrationAmplitude) {
        sleep(1);
        EXPECT_EQ(Status::EX_NONE, vibrator->setAmplitude(1.0f).exceptionCode());
        sleep(1);
        EXPECT_TRUE(vibrator->off().isOk());
    }
}