]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/lib/test_srcdest_table.c
Merge pull request #8976 from ton31337/fix/bgp_dest_unlock_node
[mirror_frr.git] / tests / lib / test_srcdest_table.c
index dbfe8533655af1bce207e6cf6e877b060828b2f3..097da113ab0e712f4e3c4b84e5d85810b5c66403 100644 (file)
@@ -271,7 +271,7 @@ static void test_state_verify(struct test_state *test)
                                                       associated with rn */
                                expected_lock++;
 
-                       if (rn->lock != expected_lock)
+                       if (route_node_get_lock_count(rn) != expected_lock)
                                test_failed(
                                        test,
                                        "Dest rnode lock count doesn't match expected count!",
@@ -283,7 +283,7 @@ static void test_state_verify(struct test_state *test)
                            != NULL) /* The route node is not internal */
                                expected_lock++;
 
-                       if (rn->lock != expected_lock) {
+                       if (route_node_get_lock_count(rn) != expected_lock) {
                                srcdest_rnode_prefixes(
                                        rn, (const struct prefix **)&dst_p,
                                        (const struct prefix **)&src_p);