Skip to content

Commit

Permalink
Restructure subscriber-with-error-details tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 7, 2024
1 parent 39b61be commit bc92de7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ballerina/tests/additional_external_error_data_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
// under the License.

import ballerina/log;
import ballerina/http;
// import ballerina/io;
import ballerina/http;
import ballerina/test;

listener Listener additionalErrorDetailsListener = new (9093);
listener Listener additionalErrorDetailsListener = new (SUB_WITH_ADDITIONAL_ERRDETAILS_PORT);

SubscriberService serviceWithAdditionalErrorDetails = @SubscriberServiceConfig {
target: "http://0.0.0.0:9191/common/discovery",
Expand Down Expand Up @@ -61,7 +60,7 @@ function afterAdditionalErrorDetailsService() returns error? {
check additionalErrorDetailsListener.gracefulStop();
}

http:Client subscriberServiceErrorDetailsClientEp = check new ("http://localhost:9093/subscriber");
http:Client subscriberServiceErrorDetailsClientEp = check new (string `http://localhost:${SUB_WITH_ADDITIONAL_ERRDETAILS_PORT}/subscriber`);

@test:Config {
groups: ["service-with-additional-details"]
Expand Down
1 change: 1 addition & 0 deletions ballerina/tests/test_ports.bal
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ const int COMMON_HUB_SVC_PORT = 1;
const int BASE_PORT = 9400;
const int BASIC_SUB_PORT = BASE_PORT + 1;
const int SUB_WITH_DFLT_METHODS_PORT = BASE_PORT + 2;
const int SUB_WITH_ADDITIONAL_ERRDETAILS_PORT = BASE_PORT + 3;

0 comments on commit bc92de7

Please sign in to comment.