CE-1887 Fix tests (pass qinstance into spec)

This commit is contained in:
2024-10-18 10:52:42 -05:00
parent 428e188b4b
commit 5e37beabbe

View File

@ -98,7 +98,9 @@ public abstract class SpecTestBase
{ {
service = Javalin.create(config -> service = Javalin.create(config ->
{ {
config.router.apiBuilder(() -> getSpec().defineRoute(getVersion())); AbstractEndpointSpec<?, ?, ?> spec = getSpec();
spec.setQInstance(TestUtils.defineInstance());
config.router.apiBuilder(() -> spec.defineRoute(getVersion()));
} }
).start(PORT); ).start(PORT);
} }