Skip to content

Commit

Permalink
Make testFDSite more robust by limiting message bytes read (#173)
Browse files Browse the repository at this point in the history
Copied from fract4dgui.gtkfractal.Hidden.onData().
  • Loading branch information
cjmayo authored Oct 5, 2020
1 parent 7ac006c commit 332372a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fract4d/tests/test_fract4d.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def testFDSite(self):
# wait up to 1 sec until we can read, otherwise we assume the counterpart is gone (an error ocurred on the C++ layer)
r, w, e = select.select([rfd], [], [], 1)
if rfd in r:
temp = os.read(rfd, nb)
temp = os.read(rfd, nb - len(bytes))
else:
self.fail("no one on the other side")
bytes = bytes + temp
Expand Down

0 comments on commit 332372a

Please sign in to comment.