Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit c61d089

Browse files
tests: fix radix test
next may be end() in case of the last key (or in case of concurrent erase).
1 parent b4a8a3f commit c61d089

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/radix_tree/radix_concurrent_erase.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ test_erase_increment(nvobj::pool<root> &pop,
176176
it->value() == v);
177177
if (it != ptr->end()) {
178178
auto next = ++it;
179-
UT_ASSERT(next != ptr->end());
180-
UT_ASSERT(next->key() > k);
179+
if (next != ptr->end())
180+
UT_ASSERT(next->key() >
181+
k);
181182
}
182183
});
183184
}

0 commit comments

Comments
 (0)