Skip to content

Commit

Permalink
Fix test failure in the ballerina full-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Feb 9, 2024
1 parent 8c2be6d commit 9a5bf2b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 9a5bf2b

Please sign in to comment.