Fix flaky IgniteSpringBeanSpringResourceInjectionTest.testSpringResourceInjectedInService - Fixes
@@ -172,7 +172,7 @@ public class IgniteSpringBeanSpringResourceInjectionTest extends GridCommonAbstr
Future<?> fut = executorSvc.submit(testRunnable);
try {
- fut.get(5, TimeUnit.SECONDS);
+ fut.get(15, TimeUnit.SECONDS);
}
catch (TimeoutException ignored) {
fail("Failed to wait for completion. Deadlock is possible");
@@ -211,7 +211,9 @@ public class IgniteSpringBeanSpringResourceInjectionTest extends GridCommonAbstr
/** {@inheritDoc} */
@Override Integer getInjectedBean() {
Ignite ignite = appCtx.getBean(Ignite.class);
- ServiceWithSpringResource svc = ignite.services().service("ServiceWithSpringResource");
+
+ ServiceWithSpringResource svc = ignite.services().serviceProxy("ServiceWithSpringResource",
+ ServiceWithSpringResource.class, false);
return svc.getInjectedSpringField();
}
