From 9a5bf2b6bc4648f8236785713cfd36e91bc4cc5a Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Fri, 9 Feb 2024 15:51:39 +0530 Subject: [PATCH] Fix test failure in the ballerina full-build --- ballerina/tests/subscription_initiation_test.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ballerina/tests/subscription_initiation_test.bal b/ballerina/tests/subscription_initiation_test.bal index 90846020..a82c1f0c 100644 --- a/ballerina/tests/subscription_initiation_test.bal +++ b/ballerina/tests/subscription_initiation_test.bal @@ -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); @@ -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();