@@ -74,6 +74,7 @@ public class StickyWorkerTest {
7474
7575 private static final boolean useDockerService =
7676 Boolean .parseBoolean (System .getenv ("USE_DOCKER_SERVICE" ));
77+ private static final String STICKY_TASK_LIST_METRIC_TAG = "__sticky__" ;
7778
7879 @ Parameterized .Parameter public boolean useExternalService ;
7980
@@ -151,7 +152,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedSignals() throws Exception
151152 Map <String , String > tags =
152153 new ImmutableMap .Builder <String , String >(2 )
153154 .put (MetricsTag .DOMAIN , DOMAIN )
154- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
155+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
155156 .build ();
156157 Thread .sleep (600 );
157158 verify (reporter , atLeastOnce ())
@@ -265,7 +266,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedActivities() throws Except
265266 Map <String , String > tags =
266267 new ImmutableMap .Builder <String , String >(2 )
267268 .put (MetricsTag .DOMAIN , DOMAIN )
268- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
269+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
269270 .build ();
270271 verify (reporter , atLeastOnce ())
271272 .reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
@@ -314,7 +315,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedChildWorkflows() throws Ex
314315 Map <String , String > tags =
315316 new ImmutableMap .Builder <String , String >(2 )
316317 .put (MetricsTag .DOMAIN , DOMAIN )
317- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
318+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
318319 .build ();
319320 verify (reporter , atLeastOnce ())
320321 .reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
@@ -370,7 +371,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedMutableSideEffect() throws
370371 Map <String , String > tags =
371372 new ImmutableMap .Builder <String , String >(2 )
372373 .put (MetricsTag .DOMAIN , DOMAIN )
373- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
374+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
374375 .build ();
375376 verify (reporter , atLeastOnce ())
376377 .reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
0 commit comments