diff --git a/test/storage/b_plus_tree_delete_test.cpp b/test/storage/b_plus_tree_delete_test.cpp index c6bfa7afd..3b11f184a 100644 --- a/test/storage/b_plus_tree_delete_test.cpp +++ b/test/storage/b_plus_tree_delete_test.cpp @@ -81,6 +81,13 @@ TEST(BPlusTreeTests, DISABLED_DeleteTestNoIterator) { } } EXPECT_EQ(size, 1); + + // Remove the remaining key + index_key.SetFromInteger(2); + tree.Remove(index_key); + auto root_page_id = tree.GetRootPageId(); + ASSERT_EQ(root_page_id, INVALID_PAGE_ID); + delete bpm; }