Skip to content

Commit 2e67fc2

Browse files
TEST/UCP: Fix test by adding md index to comparison
1 parent 6bdf742 commit 2e67fc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/gtest/ucp/test_ucp_wireup.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,11 +1787,11 @@ class test_ucp_address_v2 : public test_ucp_wireup {
17871787
UCS_STATIC_BITMAP_FOR_EACH_BIT(rsc_index, &context->tl_bitmap) {
17881788
auto wiface = ucp_worker_iface(worker, rsc_index);
17891789

1790-
/* Compare resources by device and transport */
1791-
if ((context->tl_rscs[rsc_index].tl_name_csum ==
1790+
/* Compare resources by md_index, transport name, and device */
1791+
if ((context->tl_rscs[rsc_index].md_index == ae->md_index) &&
1792+
(context->tl_rscs[rsc_index].tl_name_csum ==
17921793
ae->tl_name_csum) &&
17931794
uct_iface_is_reachable_v2(wiface->iface, &params)) {
1794-
EXPECT_EQ(ae->md_index, context->tl_rscs[rsc_index].md_index);
17951795
return &wiface->attr;
17961796
}
17971797
}

0 commit comments

Comments
 (0)