Merge "libsnapshot: Use SnapshotManager to delete devices."

This commit is contained in:
Treehugger Robot 2022-08-13 10:39:22 +00:00 committed by Gerrit Code Review
commit 3de2320e5e

View file

@ -349,7 +349,7 @@ class SnapshotTest : public ::testing::Test {
}
AssertionResult DeleteDevice(const std::string& device) {
if (!dm_.DeleteDeviceIfExists(device)) {
if (!sm->DeleteDeviceIfExists(device, 1s)) {
return AssertionFailure() << "Can't delete " << device;
}
return AssertionSuccess();