changeset 1084:415b366668f6

TestJob configuration bugfix
author Devel 2
date Wed, 06 May 2020 08:42:28 +0200
parents 6473e8d9693f
children 351208f87e5d
files stress-tester/src/main/java/com/passus/st/job/TestJob.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/job/TestJob.java	Tue May 05 15:01:13 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/job/TestJob.java	Wed May 06 08:42:28 2020 +0200
@@ -193,20 +193,20 @@
             LOGGER.debug("Forcibly changing workersNum to {}", eventSources.size());
         }
 
-        Map<String, ValueExtractor> appVars = context.get(
-                ConfigurationContextConsts.APP_VARS);
+        List<FlowFilter> filters = context.get(FLOW_FILTERS);
+
+        Map<String, ValueExtractor> appVars = context.get(ConfigurationContextConsts.APP_VARS);
         if (appVars != null) {
             HttpVarsFilter httpVarsFilter = new HttpVarsFilter(appVars);
 
-            List<FlowFilter> filters = context.get(FLOW_FILTERS);
+
             if (filters != null) {
                 filters.add(httpVarsFilter);
             }
-
-            // TODO: czy dodać filtry top-level do klienta???
-            filters.forEach(flowExecutor::addFilter);
         }
 
+        // TODO: czy dodać filtry top-level do klienta???
+        filters.forEach(flowExecutor::addFilter);
     }
 
 }