test: flush stdout so readline doesn't hang

This commit is contained in:
steve-chavez
2024-04-30 13:52:51 -05:00
committed by Steve Chavez
parent 7e5fd317e6
commit cdb877135b
+1
View File
@@ -61,6 +61,7 @@ class PostgrestProcess:
"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())