test: flush stdout so readline doesn't hang
This commit is contained in:
committed by
Steve Chavez
parent
7e5fd317e6
commit
cdb877135b
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user