Commit de3ef28
Fix SSE fallback test race condition with ResponseHeadersRead
Changed the test to use HttpCompletionOption.ResponseHeadersRead which returns
as soon as the HTTP connection is established (headers received), then publishes
the event. This eliminates the race condition where the event could be published
before the endpoint subscribes to the SSE stream.
Previously, the test used Task.Delay(100ms) hoping the subscription would happen
in time, which caused timeouts in CI environments (GitHub Actions).
Added 5-second timeout for safety.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1153108 commit de3ef28
File tree
1 file changed
+17
-21
lines changed- SWEN3.Paperless.RabbitMq.Tests/Unit
1 file changed
+17
-21
lines changedLines changed: 17 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
44 | 41 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
0 commit comments