Commit 7900fed
Fix a race condition in
The test failed non-deterministically if `mockBackend` was executed before the `writeData` closure started executing in the background.
Modify the test slightly to wait in `mockBackend` until the client started writing data. Also improve it slightly to reduce the likelihood of `isWriting` being `true` before `writer.write` is executed by adding a short `sleep` call.
Co-authored-by: Fabian Fett <[email protected]>testCopyFromHasWriteBackpressure (#614)1 parent 7383207 commit 7900fed
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
876 | 883 | | |
877 | 884 | | |
878 | 885 | | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
879 | 892 | | |
880 | 893 | | |
881 | 894 | | |
| |||
0 commit comments