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"); } }