From 64f27db3696dc8fc538a415fc3b8fe23ec375f81 Mon Sep 17 00:00:00 2001 From: Danesh Kuruppu Date: Fri, 7 Mar 2025 15:14:53 +0530 Subject: [PATCH] Update ballerina/tests/postgresql_hospital_with_schema_tests.bal Co-authored-by: Nuvindu Nirmana <63797478+Nuvindu@users.noreply.github.com> --- ballerina/tests/postgresql_hospital_with_schema_tests.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/tests/postgresql_hospital_with_schema_tests.bal b/ballerina/tests/postgresql_hospital_with_schema_tests.bal index 22e3ea5..876881a 100644 --- a/ballerina/tests/postgresql_hospital_with_schema_tests.bal +++ b/ballerina/tests/postgresql_hospital_with_schema_tests.bal @@ -135,7 +135,7 @@ function testGetPatientByIdPostgreSqlWithSchema() returns error? { function testGetPatientNotFoundPostgreSqlWithSchema() returns error? { PostgreSqlHospitalWithSchemaClient postgresSqlDbHospital = check new(); Patient|persist:Error patient = postgresSqlDbHospital->/patients/[10].get(); - if !(patient is persist:NotFoundError) { + if patient !is persist:NotFoundError { test:assertFail("Patient should be not found"); } }