diff --git a/asb-ballerina/tests/asb_test.bal b/asb-ballerina/tests/asb_test.bal index d61d05f6..d992a48d 100644 --- a/asb-ballerina/tests/asb_test.bal +++ b/asb-ballerina/tests/asb_test.bal @@ -31,7 +31,7 @@ string stringContent = "This is ASB connector test-Message Body"; byte[] byteContent = stringContent.toBytes(); json jsonContent = {name: "wso2", color: "orange", price: 5.36}; byte[] byteContentFromJson = jsonContent.toJsonString().toBytes(); -map properties = {a: "propertyValue1", b: "propertyValue2", c: 1, d: "true", f: 1.345, s: false, k:1020202, g: jsonContent}; +map properties = {a: "propertyValue1", b: "propertyValue2", c: 1, d: "true", f: 1.345, s: false, k:1020202, g: jsonContent}; int timeToLive = 60; // In seconds int serverWaitTime = 60; // In seconds int maxMessageCount = 2; @@ -94,7 +94,7 @@ function testSendAndReceiveMessageFromQueueOperation() returns error? { if (messageReceived is Message) { var result = check messageReceiver->complete(messageReceived); test:assertEquals(result, (), msg = "Complete message not successful."); - float mapValue = check getApplicationPropertyByName(messageReceived, "f"); + float mapValue = check getApplicationPropertyByName(messageReceived, "f").ensureType(); test:assertEquals(mapValue, properties["f"], "Retrieving application properties failed"); } else if (messageReceived is ()) { test:assertFail("No message in the queue.");