diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp index bba402d41..b2e4c3af7 100644 --- a/test/test_primitives.cpp +++ b/test/test_primitives.cpp @@ -368,7 +368,7 @@ int test_main() std::vector temp; std::generate(tmp.begin(), tmp.end(), &std::rand); - table.find_node(tmp, temp, false, nodes.size()); + table.find_node(tmp, temp, false, nodes.size() + 1); std::cout << "returned: " << temp.size() << std::endl; TEST_CHECK(temp.size() == nodes.size());