Skip to content

Commit

Permalink
Update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Jun 17, 2021
1 parent bc3fb81 commit a7e2406
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions websub-ballerina/tests/utils_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ isolated function testRequestHeadersRetrievalWithoutHeaderValue() returns @taint
@test:Config {
groups: ["httpClientRetrieval"]
}
isolated function testRetrieveHttpClientWithConfig() returns @tainted error? {
isolated function testRetrieveHttpClientWithConfig() {
http:ClientConfiguration httpsConfig = {
secureSocket: {
cert: {
Expand All @@ -410,14 +410,14 @@ isolated function testRetrieveHttpClientWithConfig() returns @tainted error? {
}
}
};
http:Client clientEp = check retrieveHttpClient("https://test.com/sample", httpsConfig);
var clientEp = retrieveHttpClient("https://test.com/sample", httpsConfig);
test:assertTrue(clientEp is http:Client);
}

@test:Config {
groups: ["httpClientRetrieval"]
}
isolated function testRetrieveHttpClientWithoutConfig() returns @tainted error? {
http:Client clientEp = check retrieveHttpClient("https://test.com/sample", ());
isolated function testRetrieveHttpClientWithoutConfig() {
var clientEp = retrieveHttpClient("https://test.com/sample", ());
test:assertTrue(clientEp is http:Client);
}

0 comments on commit a7e2406

Please sign in to comment.