diff options
Diffstat (limited to 'test/tree_test.c')
-rw-r--r-- | test/tree_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/tree_test.c b/test/tree_test.c index 6433193..c352fc0 100644 --- a/test/tree_test.c +++ b/test/tree_test.c @@ -68,9 +68,7 @@ stress(int test_num, size_t n_elems) for (size_t i = 0; i < n_elems; ++i) { r = ith_elem(test_num, n_elems, i); int status = zix_tree_insert(t, (void*)r, &ti); - if (status == ZIX_STATUS_EXISTS) { - continue; - } else if (status != ZIX_STATUS_SUCCESS) { + if (status) { fprintf(stderr, "Insert failed\n"); return test_fail(); } |