Commit 6430d56f authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2207] Test it cleans up automatically

parent ccfb2bf2
......@@ -217,4 +217,11 @@ TEST_F(ZoneWriterLocalTest, loadNull) {
EXPECT_NO_THROW(writer_->cleanup());
}
// Check the object cleans up in case we forget it.
TEST_F(ZoneWriterLocalTest, autoCleanUp) {
// Load data and forget about it. It should get released
// when the writer itself is destroyed.
EXPECT_NO_THROW(writer_->load());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment