PluginServices: Do not throw if device control cannot be released

This commit is contained in:
Dennis Klein
2019-07-28 11:56:02 +02:00
committed by Dennis Klein
parent 93eb599df7
commit 008be36125
4 changed files with 7 additions and 6 deletions

View File

@@ -26,10 +26,7 @@ TEST_F(PluginServices, OnlySingleController)
mServices.ChangeDeviceState("bar", DeviceStateTransition::InitDevice),
fair::mq::PluginServices::DeviceControlError
);
ASSERT_THROW( // no control for bar
mServices.ReleaseDeviceControl("bar"),
fair::mq::PluginServices::DeviceControlError
);
ASSERT_NO_THROW(mServices.ReleaseDeviceControl("bar"));
ASSERT_NO_THROW(mServices.ReleaseDeviceControl("foo"));
ASSERT_FALSE(mServices.GetDeviceController());