Skip to content

Commit

Permalink
Change checkpanic and return error
Browse files Browse the repository at this point in the history
Co-authored-by: Sasindu Alahakoon <47134066+SasinduDilshara@users.noreply.github.com>
  • Loading branch information
TharmiganK and SasinduDilshara authored Mar 1, 2024
1 parent 13800fb commit e3db6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/tests/mime_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ isolated function testSeStreamAndForeachTheStream() returns error? {
int i = 0;
io:Error? e = from byte[] student in str
do {
string name = checkpanic strings:fromBytes(student);
string name = check strings:fromBytes(student);
test:assertEquals(name, expectedContent[i], msg = "Found unexpected output");
i += 1;
};
Expand Down

0 comments on commit e3db6e8

Please sign in to comment.