Commit e6b8d51
[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 apache#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 13fa689 commit e6b8d51
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1916 | 1916 | | |
1917 | 1917 | | |
1918 | 1918 | | |
1919 | | - | |
| 1919 | + | |
1920 | 1920 | | |
1921 | 1921 | | |
1922 | 1922 | | |
| |||
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1942 | 1945 | | |
1943 | 1946 | | |
1944 | | - | |
| 1947 | + | |
1945 | 1948 | | |
1946 | 1949 | | |
1947 | 1950 | | |
| |||
0 commit comments