Skip to content

Commit

Permalink
Add while loop back
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge committed Jan 27, 2025
1 parent c77e1fd commit 4404faf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ballerina-tests/graphql-test-common/utils.bal
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ public isolated function getContentFromByteStream(stream<byte[], io:Error?> byte

public isolated function readMessageExcludingPingMessages(websocket:Client wsClient) returns json|error {
json message = null;
int i = 0;
while i < 10 {
i = i + 1;
while true {
message = check wsClient->readMessage();
if message == null {
continue;
Expand Down

0 comments on commit 4404faf

Please sign in to comment.