Skip to content

Commit

Permalink
Restructure subscription init tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 7, 2024
1 parent 8aa93f7 commit e5132d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Empty file.
4 changes: 2 additions & 2 deletions ballerina/tests/subscription_initiation_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ isolated function testUnSubscriptionInitiationSuccessWithAdditionalParams() retu
groups: ["subscriptionInitiation"]
}
function testSubInitFailedWithListenerForResourceDiscoveryFailure() returns error? {
Listener ls = check new (9500);
Listener ls = check new (SUB_INIT_RCS_DISCOVERY_PORT);
var res = ls.attachWithConfig(websubServiceObj, getServiceAnnotationConfig(DISCOVERY_FAILURE_URL), "sub");
if res is error {
log:printError("[testSubInitFailedWithListenerForResourceDiscoveryFailure] error occurred ", 'error = res);
Expand All @@ -267,7 +267,7 @@ function testSubInitFailedWithListenerForResourceDiscoveryFailure() returns erro
groups: ["subscriptionInitiation"]
}
function testSubInitFailedWithListenerForSubFailure() returns error? {
Listener ls = check new (9501);
Listener ls = check new (SUB_INIT_FAILURE_PORT);
var res = ls.attachWithConfig(websubServiceObj, getServiceAnnotationConfig([ HUB_FAILURE_URL, COMMON_TOPIC ]), "sub");
test:assertFalse(res is error);
var startDetails = ls.'start();
Expand Down
2 changes: 2 additions & 0 deletions ballerina/tests/test_ports.bal
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ const int SUB_UTILS_PORT = BASE_PORT + 10;
const int UNSUB_SUB_PORT = BASE_PORT + 11;
const int ISOLATED_SUB_PORT = BASE_PORT + 12;
const int SUB_WITH_RO_PARAMS_PORT = BASE_PORT + 13;
const int SUB_INIT_RCS_DISCOVERY_PORT = BASE_PORT + 14;
const int SUB_INIT_FAILURE_PORT = BASE_PORT + 15;

0 comments on commit e5132d8

Please sign in to comment.