Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Websub subscription negative test case fails in the ballerina full-build pipeline #643

Merged
merged 11 commits into from
Feb 9, 2024
4 changes: 2 additions & 2 deletions ballerina/tests/subscription_initiation_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,11 @@ isolated function testUnSubscriptionInitiationSuccessWithAdditionalParams() retu
check unsubscribe(config, "https://sample.com/sub1");
}

listener Listener ls = new (9100);

@test:Config {
groups: ["subscriptionInitiation"]
}
function testSubInitFailedWithListenerForResourceDiscoveryFailure() returns error? {
Listener ls = check new (9500);
var res = ls.attachWithConfig(websubServiceObj, getServiceAnnotationConfig(DISCOVERY_FAILURE_URL), "sub");
if res is error {
log:printError("[testSubInitFailedWithListenerForResourceDiscoveryFailure] error occurred ", 'error = res);
Expand All @@ -268,6 +267,7 @@ function testSubInitFailedWithListenerForResourceDiscoveryFailure() returns erro
groups: ["subscriptionInitiation"]
}
function testSubInitFailedWithListenerForSubFailure() returns error? {
Listener ls = check new (9501);
var res = ls.attachWithConfig(websubServiceObj, getServiceAnnotationConfig([ HUB_FAILURE_URL, COMMON_TOPIC ]), "sub");
test:assertFalse(res is error);
var startDetails = ls.'start();
Expand Down
Loading