From cdb877135b7f3e8c2f05e57d82bbbd6a8feac700 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 30 Apr 2024 13:31:08 -0500 Subject: [PATCH] test: flush stdout so readline doesn't hang --- test/io/postgrest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/io/postgrest.py b/test/io/postgrest.py index 6fd46613c7..43fe25ad43 100644 --- a/test/io/postgrest.py +++ b/test/io/postgrest.py @@ -61,6 +61,7 @@ def read_stdout(self, nlines=1): "Wait for line(s) on standard output." output = [] for _ in range(10): + self.process.stdout.flush() l = self.process.stdout.readline() if l: output.append(l.decode())