Commit 21ef0fd
[SPARK-28582][PYSPARK] Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7
Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.
Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed
Closes #25315 from WeichenXu123/fix_py37_daemon.
Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit fbeee0c)
Signed-off-by: HyukjinKwon <[email protected]>1 parent 5a1e54d commit 21ef0fd
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
1865 | 1868 | | |
1866 | 1869 | | |
1867 | | - | |
| 1870 | + | |
1868 | 1871 | | |
1869 | 1872 | | |
1870 | 1873 | | |
| |||
0 commit comments