diff --git a/src/unittest/snarl_distance_index.cpp b/src/unittest/snarl_distance_index.cpp index ca30acb651..fc7b808bd3 100644 --- a/src/unittest/snarl_distance_index.cpp +++ b/src/unittest/snarl_distance_index.cpp @@ -6906,7 +6906,7 @@ namespace vg { SECTION("Traversal of chain") { net_handle_t chain1_6 = distance_index.get_parent(distance_index.get_node_net_handle(n1->id())); distance_index.for_each_child(chain1_6, [&](const net_handle_t& child) { - assert(distance_index.get_parent(child) == chain1_6); + assert(distance_index.canonical(distance_index.get_parent(child)) == distance_index.canonical(chain1_6)); }); } SECTION("Minimum distances are correct") {