Commit f8a4c39
fix(tests): fix Hangfire job timing race in integration tests
The production Hangfire server uses a 30s SchedulePollingInterval, meaning
enqueued tenant provisioning jobs could wait up to 30s before pickup — longer
than the test's 30s polling timeout. Fix:
- Override AddHangfireServer in test factory with 1s polling interval
- Increase WaitForProvisioningAsync timeout from 30s to 60s
- Fail fast on provisioning failure instead of silently continuing
- Throw TimeoutException instead of silently returning on timeout
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6054e02 commit f8a4c39
File tree
2 files changed
+18
-3
lines changed- src/Tests/Integration.Tests
- Infrastructure
- Tests/Multitenancy
2 files changed
+18
-3
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
0 commit comments