发布

  • [NA] [BE] fix: resolve flaky RetentionPolicyServiceTest parameter injection (#6286)

    frostbyte_neo 发布于 2026-04-15 10:09:10 +00:00

    The three retention services only have JIT Guice bindings via their
    Quartz jobs, which are instantiated lazily on first fire. When @BeforeAll
    runs before Quartz has fired any retention job, guicey's
    TestParametersSupport.supportsParameter returns false (getExistingBinding
    only sees materialized bindings), and JUnit throws
    ParameterResolutionException.

    Annotate the three service parameters with @Jit so guicey resolves them
    via injector.getInstance(), forcing the JIT binding on demand.

    下载附件