From 4154926be7a29e2c71e50c887fbfb8fcc5d2c3e8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Jul 2022 13:25:21 +0530 Subject: [PATCH] Get the test to pass on macOS --- kitty_tests/prewarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/prewarm.py b/kitty_tests/prewarm.py index 1b51015b3..8a6c51f0a 100644 --- a/kitty_tests/prewarm.py +++ b/kitty_tests/prewarm.py @@ -67,6 +67,7 @@ def socket_child_main(exit_code=0): stdin_data = 'testing--stdin-read' with open(stdin_w, 'w') as f: f.write(stdin_data) + pty.wait_till(lambda: 'hello' in pty.screen_contents()) with open(stdout_r) as f: stdout_data = f.read() status = wait_for_child_death(pty.child_pid, timeout=5) @@ -75,7 +76,6 @@ def socket_child_main(exit_code=0): self.assertIsNotNone(status, 'prewarm wrapper process did not exit') with suppress(AttributeError): self.assertEqual(os.waitstatus_to_exitcode(status), exit_code) - pty.wait_till(lambda: 'hello' in pty.screen_contents()) output = json.loads(pty.screen_contents().strip()) self.assertEqual(output['test_env'], env['TEST_ENV_PASS']) self.assertEqual(output['cwd'], cwd)