Skip to content

Commit

Permalink
Merge pull request #643 from ayeshLK/master
Browse files Browse the repository at this point in the history
[FIX] Websub subscription negative test case fails in the ballerina full-build pipeline
  • Loading branch information
ayeshLK authored Feb 9, 2024
2 parents cbcd929 + 11ffd56 commit 742dfd7
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 742dfd7

Please sign in to comment.