Skip to content

Commit

Permalink
Update test_rbus_fr.c
Browse files Browse the repository at this point in the history
  • Loading branch information
nlrcomcast authored Oct 31, 2024
1 parent 2e55a67 commit f784665
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/test_rbus_fr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,24 +1548,24 @@ void test_subscribeTo_CurrentActiveInterface_Event()
CU_ASSERT_NOT_EQUAL(rc, RBUS_ERROR_SUCCESS);

webconfigRbusInit("consumerComponent");
int res = rbus_open(&handle, "providerComponent");
if(res != RBUS_ERROR_SUCCESS)
{
CU_FAIL("rbus_open failed for providerComponent");
}

rbusDataElement_t webcfgInterfaceElement[1] = {
{WEBCFG_INTERFACE_PARAM, RBUS_ELEMENT_TYPE_PROPERTY, {NULL, NULL, NULL, NULL, webcfgInterfaceSubscribeHandler, NULL}}
};
rbusError_t ret = rbus_regDataElements(handle, 1, webcfgInterfaceElement);
CU_ASSERT_EQUAL(ret, RBUS_ERROR_SUCCESS);
// int res = rbus_open(&handle, "providerComponent");
// if(res != RBUS_ERROR_SUCCESS)
// {
// CU_FAIL("rbus_open failed for providerComponent");
// }

// rbusDataElement_t webcfgInterfaceElement[1] = {
// {WEBCFG_INTERFACE_PARAM, RBUS_ELEMENT_TYPE_PROPERTY, {NULL, NULL, NULL, NULL, webcfgInterfaceSubscribeHandler, NULL}}
// };
// rbusError_t ret = rbus_regDataElements(handle, 1, webcfgInterfaceElement);
// CU_ASSERT_EQUAL(ret, RBUS_ERROR_SUCCESS);

rc = subscribeTo_CurrentActiveInterface_Event();
CU_ASSERT_EQUAL(rc, RBUS_ERROR_SUCCESS);

rbusError_t result = rbus_unregDataElements(handle, 1, webcfgInterfaceElement);
CU_ASSERT_EQUAL(result, RBUS_ERROR_SUCCESS);
rbus_close(handle);
// rbusError_t result = rbus_unregDataElements(handle, 1, webcfgInterfaceElement);
// CU_ASSERT_EQUAL(result, RBUS_ERROR_SUCCESS);
// rbus_close(handle);
webpaRbus_Uninit();
}

Expand Down

0 comments on commit f784665

Please sign in to comment.