Skip to content

Commit

Permalink
[tests] Drop obsolete test
Browse files Browse the repository at this point in the history
(Tests passing again.)
  • Loading branch information
ricab committed Apr 15, 2024
1 parent 0de0e80 commit 6082e24
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/qemu/test_qemu_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,21 +824,8 @@ struct MockQemuVM : public mpt::MockVirtualMachineT<mp::QemuVirtualMachine>
using mpt::MockVirtualMachineT<mp::QemuVirtualMachine>::MockVirtualMachineT;
using mp::QemuVirtualMachine::make_specific_snapshot;
using mp::QemuVirtualMachine::require_snapshots_support;

MOCK_METHOD(void, drop_ssh_session, (), (override));
};

TEST_F(QemuBackend, dropsSSHSessionWhenStopping)
{
NiceMock<MockQemuVM> machine{"mock-qemu-vm", key_provider};
machine.state = multipass::VirtualMachine::State::stopped;

EXPECT_CALL(machine, drop_ssh_session());

MP_DELEGATE_MOCK_CALLS_ON_BASE(machine, shutdown, mp::QemuVirtualMachine);
machine.shutdown(false);
}

TEST_F(QemuBackend, supportsSnapshots)
{
MockQemuVM vm{"asdf", key_provider};
Expand Down

0 comments on commit 6082e24

Please sign in to comment.