Skip to content

Commit

Permalink
test: flush stdout so readline doesn't hang
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Apr 30, 2024
1 parent 7e5fd31 commit cdb8771
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/io/postgrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit cdb8771

Please sign in to comment.