Commit 851607d
committed
test: fix webhook test race condition
The webhook test was creating the GitRepo resource after pushing content,
which caused a race condition. The git push would trigger the post-receive
webhook, but the GitRepo resource didn't exist yet, so the webhook was
ignored. With polling disabled (24h), the GitRepo never synced.
Fixed by creating the GitRepo resource first, then pushing content. This
ensures the webhook can find and update the GitRepo when triggered.1 parent 47268a8 commit 851607d
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 273 | + | |
| 274 | + | |
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
| |||
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
0 commit comments