Commit 8113645
committed
Guard natsRqueueWorkerRegistry on @ConditionalOnBean(RqueueConfig.class)
The bean requires RqueueConfig but the ApplicationContextRunner in
RqueueNatsAutoConfigTest doesn't provide it, causing the context to fail
before the MessageBroker bean can be verified. Adding
@ConditionalOnBean(RqueueConfig.class) makes the registry back off in
narrow test contexts while remaining fully active in real Spring Boot apps
where RqueueConfig is always present.
Assisted-By: Claude Code1 parent d7d2a7b commit 8113645
1 file changed
Lines changed: 2 additions & 0 deletions
File tree
- rqueue-spring-boot-starter/src/main/java/com/github/sonus21/rqueue/spring/boot
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
0 commit comments