[K/Wasm] Fix stepping tests flakiness with reading stdout until it is empty

This commit is contained in:
Artem Kobzar
2024-01-26 16:20:41 +00:00
committed by Space Team
parent db7e58ef35
commit a593936b8a
@@ -105,7 +105,7 @@ internal class ExternalTool(val path: String) {
val stdout = StringBuilder()
val bufferedStdout = BufferedReader(InputStreamReader(process.inputStream))
while (process.isAlive) {
while (true) {
val line = bufferedStdout.readLine() ?: break
stdout.appendLine(line)
println(line)