| … | … | @@ -207,14 +207,22 @@ void MultiDeleteUTest::test_add_delete(void) |
| 207 | 207 | store->load_atomspace(); |
| 208 | 208 | printf("Final AtomSpace size=%lu\n", as->get_size()); |
| 209 | 209 | |
| 210 | #if THIS_IS_NOT_TRUE |
| 210 | 211 | // Size should be 19: the 18 from before plus that annoying |
| 211 | 212 | // (Predicate "*-TruthValueKey-*") |
| 213 | // |
| 214 | // Well, but this will not hold true, because the insert and |
| 215 | // remove ran in different threads, asynchronously, and so |
| 216 | // there may have been inserts after the "matching" remove. |
| 217 | // This will hold for the MonoMultiDeleteUTest, because |
| 218 | // everything is processed synchronously, there. But not here. |
| 212 | 219 | size_t expected_size = 9 + n_threads; |
| 213 | 220 | if (as->get_size() != expected_size) |
| 214 | 221 | printf("Error: Bad size! AtomSpace contents =\n%s\n", |
| 215 | 222 | as->to_string().c_str()); |
| 216 | 223 | |
| 217 | 224 | TS_ASSERT_EQUALS(as->get_size(), expected_size); |
| 225 | #endif |
| 218 | 226 | |
| 219 | 227 | store->erase(); |
| 220 | 228 | store->close(); |