test(disco): remove disco_items_error_handling test
All checks were successful
CI Code / Check spelling (pull_request) Successful in 1m28s
CI Code / Check coding style (pull_request) Successful in 1m34s
CI Code / Linux (ubuntu) (pull_request) Successful in 9m26s
CI Code / Linux (debian) (pull_request) Successful in 10m23s
CI Code / Code Coverage (pull_request) Successful in 10m30s
CI Code / Linux (arch) (pull_request) Successful in 12m24s

This test requires the fix from fix/xep-0030-disco-items-error-handling
branch. Moved there along with the source code fix.
This commit is contained in:
2026-02-16 11:19:18 +03:00
parent 3fc19112c9
commit a67f7a2d0c
3 changed files with 0 additions and 27 deletions

View File

@@ -193,7 +193,6 @@ main(int argc, char* argv[])
PROF_FUNC_TEST(disco_info_without_name),
PROF_FUNC_TEST(disco_items_without_name),
PROF_FUNC_TEST(disco_info_service_unavailable),
PROF_FUNC_TEST(disco_items_error_handling),
};
/* ============================================================

View File

@@ -418,28 +418,3 @@ disco_info_service_unavailable(void **state)
assert_true(prof_output_regex("Service discovery failed.*service-unavailable"));
prof_timeout_reset();
}
void
disco_items_error_handling(void **state)
{
/*
* Test that /disco items displays error responses to user.
* Per XEP-0030 Section 7: errors like service-unavailable must be shown.
*/
stbbr_for_query("http://jabber.org/protocol/disco#items",
"<iq to='stabber@localhost/profanity' type='error' from='broken.localhost'>"
"<error type='cancel'>"
"<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>"
"</error>"
"</iq>"
);
prof_connect();
prof_input("/disco items broken.localhost");
prof_timeout(10);
/* Per XEP-0030, error should be displayed to user */
assert_true(prof_output_regex("Service discovery failed.*service-unavailable"));
prof_timeout_reset();
}

View File

@@ -17,4 +17,3 @@ void disco_info_multiple_identities(void **state);
void disco_info_without_name(void **state);
void disco_items_without_name(void **state);
void disco_info_service_unavailable(void **state);
void disco_items_error_handling(void **state);