Commit 77ff686
Fix flaky CI test by replacing external dependency with local test server
The TestExecuteHook_CurlWebhook test was failing intermittently in CI
with 'signal: killed' errors due to external dependency on httpbin.org.
This fix replaces the external HTTP request with a local httptest.Server
to eliminate network-related flakiness and make the test deterministic.
Changes:
- Replace httpbin.org with httptest.NewServer for reliable testing
- Add request verification to ensure the webhook functionality works
- Maintain the same test coverage while eliminating external dependency
Co-authored-by: Maksym Pavlenko <[email protected]>1 parent 189e807 commit 77ff686
1 file changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | | - | |
| 121 | + | |
98 | 122 | | |
99 | 123 | | |
100 | 124 | | |
| |||
106 | 130 | | |
107 | 131 | | |
108 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
109 | 137 | | |
0 commit comments