Skip to content

Commit 9c34ff1

Browse files
authored
Attempt to fix the intermittent test failures with nREPL on macos. (#825)
Hi, could you please review patch to attempt to fix the intermittent failures of the nrepl server cli test on macos. It fixes #824. It seems that the server has not been given the chance to write the port number to the newly created file, so it attempts to yield control back to the server. Thanks Co-authored-by: ikappaki <[email protected]>
1 parent f5141d7 commit 9c34ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/basilisp/cli_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_run_nrepl(self, run_cli):
159159
# the high retries number is to address the slowness when
160160
# running on pypy.
161161
retries = 60
162-
while not os.path.exists(tmpfilepath):
162+
while not os.path.exists(tmpfilepath) or os.stat(tmpfilepath).st_size == 0:
163163
time.sleep(1)
164164
retries -= 1
165165
assert 0 <= retries

0 commit comments

Comments
 (0)