Source:
<code>public void testResourceConfigRefresh() throws Exception { Workflow.Builder builder = new Workflow.Builder("TEST"); JobConfig.Builder jobBuilder = JobConfig.Builder.fromMap(WorkflowGenerator.DEFAULT_JOB_CONFIG); builder.addJob(WorkflowGenerator.JOB_NAME_1, jobBuilder); _driver.start(builder.build()); WorkflowControllerDataProvider cache = new WorkflowControllerDataProvider("CLUSTER_" + TestHelper.getTestClassName()); boolean expectedValuesAchieved = TestHelper.verify(() -> { cache.requireFullRefresh(); cache.refresh(_manager.getHelixDataAccessor()); int configMapSize = cache.getJobConfigMap().size(); int workflowConfigMapSize = cache.getWorkflowConfigMap().size(); int contextsSize = cache.getContexts().size(); return (configMapSize == 1 && workflowConfigMapSize == 1 && contextsSize == 2); <START> }, 30 * 1000); <END> Assert.assertTrue(expectedValuesAchieved); builder = new Workflow.Builder("TEST1"); builder.addParentChildDependency(WorkflowGenerator.JOB_NAME_1, WorkflowGenerator.JOB_NAME_2); builder.addJob(WorkflowGenerator.JOB_NAME_1, jobBuilder); builder.addJob(WorkflowGenerator.JOB_NAME_2, jobBuilder); _driver.start(builder.build()); expectedValuesAchieved = TestHelper.verify(() -> { cache.requireFullRefresh(); cache.refresh(_manager.getHelixDataAccessor()); int configMapSize = cache.getJobConfigMap().size(); int workflowConfigMapSize = cache.getWorkflowConfigMap().size(); int contextsSize = cache.getContexts().size(); return (configMapSize == 3 && workflowConfigMapSize == 2 && contextsSize == 5); }, 30 * 1000); Assert.assertTrue(expectedValuesAchieved); }</code><technical_language>Is significance wait times (30 * 1000 10 * 1000's)? If not, a public static constant in TestHelper tests</technical_language>

Target:
public void testResourceConfigRefresh() throws Exception { Workflow.Builder builder = new Workflow.Builder("TEST"); JobConfig.Builder jobBuilder = JobConfig.Builder.fromMap(WorkflowGenerator.DEFAULT_JOB_CONFIG); builder.addJob(WorkflowGenerator.JOB_NAME_1, jobBuilder); _driver.start(builder.build()); WorkflowControllerDataProvider cache = new WorkflowControllerDataProvider("CLUSTER_" + TestHelper.getTestClassName()); boolean expectedValuesAchieved = TestHelper.verify(() -> { cache.requireFullRefresh(); cache.refresh(_manager.getHelixDataAccessor()); int configMapSize = cache.getJobConfigMap().size(); int workflowConfigMapSize = cache.getWorkflowConfigMap().size(); int contextsSize = cache.getContexts().size(); return (configMapSize == 1 && workflowConfigMapSize == 1 && contextsSize == 2); }, TestHelper.WAIT_DURATION); Assert.assertTrue(expectedValuesAchieved); builder = new Workflow.Builder("TEST1"); builder.addParentChildDependency(WorkflowGenerator.JOB_NAME_1, WorkflowGenerator.JOB_NAME_2); builder.addJob(WorkflowGenerator.JOB_NAME_1, jobBuilder); builder.addJob(WorkflowGenerator.JOB_NAME_2, jobBuilder); _driver.start(builder.build()); expectedValuesAchieved = TestHelper.verify(() -> { cache.requireFullRefresh(); cache.refresh(_manager.getHelixDataAccessor()); int configMapSize = cache.getJobConfigMap().size(); int workflowConfigMapSize = cache.getWorkflowConfigMap().size(); int contextsSize = cache.getContexts().size(); return (configMapSize == 3 && workflowConfigMapSize == 2 && contextsSize == 5); }, TestHelper.WAIT_DURATION); Assert.assertTrue(expectedValuesAchieved); }