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

Commit ce474ea5 authored by David Anderson's avatar David Anderson
Browse files

libsnapshot: Fix test failure in CancelOnTargetSlot.

This test fails because CreateLogicalPartitions is effectively called
twice without unmapping anything.

Bug: 208944665
Test: run_snapshot_tests.sh
Change-Id: I7e79f43e8de2f79bb72888c4198a95d9bd76bcdd
parent 8875abd9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2215,6 +2215,8 @@ TEST_F(SnapshotUpdateTest, MapAllSnapshots) {
TEST_F(SnapshotUpdateTest, CancelOnTargetSlot) {
    AddOperationForPartitions();

    ASSERT_TRUE(UnmapAll());

    // Execute the update from B->A.
    test_device->set_slot_suffix("_b");
    ASSERT_TRUE(sm->BeginUpdate());