Commit 07940f4
committed
Fix race condition in WebHooks integration specs causing UnknownReactorId
The WebhookReactor is a kernel-side system reactor registered asynchronously
via ReactorsReactor processing EventStoreAdded. On early test contexts, the
DiscoverAndRegister call had not yet completed when GetHandlerById was invoked,
causing UnknownReactorId to be thrown.
Retry GetHandlerById with a 30-second timeout (polling every 100ms) in the
shared Register() helper so all contexts wait for the reactor to become
available. Also remove the duplicate GetHandlerById + WaitTillReachesEventSequenceNumber
calls in with_headers_and_subscribed_event_type_is_appended, which were already
performed inside Register().1 parent 1057ad6 commit 07940f4
File tree
2 files changed
+18
-6
lines changed- Integration/DotNET.InProcess/for_Webhooks
- given
- when_registering
2 files changed
+18
-6
lines changedLines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
| |||
0 commit comments