From a7e240695712b8d01bc17ee68f90fba6cda8e86d Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Thu, 17 Jun 2021 17:16:36 +0530 Subject: [PATCH] Update test cases --- websub-ballerina/tests/utils_test.bal | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/websub-ballerina/tests/utils_test.bal b/websub-ballerina/tests/utils_test.bal index 0a250b3c..f8468442 100644 --- a/websub-ballerina/tests/utils_test.bal +++ b/websub-ballerina/tests/utils_test.bal @@ -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: { @@ -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); }