[Bug]: No such field exception for client method call in a test function #42693
Labels
Area/TestFramework
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Description
Getting no such field exception when I have a client method call inside the test function. The client method has escape characters and has a default parameter.
If I move the same code in the test function to the main function then it worked as expected
It seems like an issue in the generated code for the test function
Steps to Reproduce
Create a ballerina project
Add the following to
main.bal
Add the following test function in the
tests
directoryRun
bal run
- This is workingRun
bal test
:Affected Version(s)
SwanLake Update 8 (2201.8.6)
SwanLake Update 9 (2201.9.0)
OS, DB, other environment details and versions
No response
Related area
-> Test Framework
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: