This repository was archived by the owner on Sep 1, 2024. It is now read-only.
Commit 59da108
committed
[cypress] Fix integration test timeout race
When a test times out, we call treeKill() on the Cypress process
tree, followed by rejecting the promise. However, killing the Cypress
process triggers the `exit` event callback, which causes us to resolve
the promise before we have a chance to reject it.1 parent d4c9a28 commit 59da108
File tree
1 file changed
+12
-8
lines changed- packages/cypress-plugin/test/integration/src
1 file changed
+12
-8
lines changedLines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | | - | |
| 777 | + | |
| 778 | + | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
967 | | - | |
968 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| |||
979 | 983 | | |
980 | 984 | | |
981 | 985 | | |
982 | | - | |
983 | | - | |
| 986 | + | |
| 987 | + | |
984 | 988 | | |
985 | 989 | | |
986 | 990 | | |
| |||
0 commit comments