OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-cog commits / 6a3416e

Restore several over-eager deletions
6a3416e4a7b1714922bd5250025a960b4388049b
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-08T08:01:34.000Z

Changed files (1) +5 -2

tests/persist/cog-simple/SimpleBasicDeleteUTest.cxxtest +5 -2
……@@ -324,6 +324,8 @@ void SimpleBasicDeleteUTest::test_key_deletion(void)
324324
325325 // Remove one of the keys
326326 store->remove_atom(as, kb);
327 as->extract_atom(kb);
328 TS_ASSERT_EQUALS(as->get_size(), 4);
327329
328330 // Verify the key was deleted by loading only PredicateNodes.
329331 as = createAtomSpace();
……@@ -466,9 +468,10 @@ void SimpleBasicDeleteUTest::test_key_corruption(void)
466468
467469 TS_ASSERT_EQUALS(as->get_size(), 6);
468470
469 // Remove the value .. again. It won't actually be deleted because
470 // (Concept "x") is still referenced in a Value on (Concept "b").
471 // Remove the value .. again
471472 store->remove_atom(as, hx);
473 as->extract_atom(hx);
474 TS_ASSERT_EQUALS(as->get_size(), 5);
472475 store->close();
473476 store->open();
474477 store->load_atomspace();