@@ -74,6 +74,7 @@ public class StickyWorkerTest {
74
74
75
75
private static final boolean useDockerService =
76
76
Boolean .parseBoolean (System .getenv ("USE_DOCKER_SERVICE" ));
77
+ private static final String STICKY_TASK_LIST_METRIC_TAG = "__sticky__" ;
77
78
78
79
@ Parameterized .Parameter public boolean useExternalService ;
79
80
@@ -151,7 +152,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedSignals() throws Exception
151
152
Map <String , String > tags =
152
153
new ImmutableMap .Builder <String , String >(2 )
153
154
.put (MetricsTag .DOMAIN , DOMAIN )
154
- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
155
+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
155
156
.build ();
156
157
Thread .sleep (600 );
157
158
verify (reporter , atLeastOnce ())
@@ -265,7 +266,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedActivities() throws Except
265
266
Map <String , String > tags =
266
267
new ImmutableMap .Builder <String , String >(2 )
267
268
.put (MetricsTag .DOMAIN , DOMAIN )
268
- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
269
+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
269
270
.build ();
270
271
verify (reporter , atLeastOnce ())
271
272
.reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
@@ -314,7 +315,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedChildWorkflows() throws Ex
314
315
Map <String , String > tags =
315
316
new ImmutableMap .Builder <String , String >(2 )
316
317
.put (MetricsTag .DOMAIN , DOMAIN )
317
- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
318
+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
318
319
.build ();
319
320
verify (reporter , atLeastOnce ())
320
321
.reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
@@ -370,7 +371,7 @@ public void whenStickyIsEnabledThenTheWorkflowIsCachedMutableSideEffect() throws
370
371
Map <String , String > tags =
371
372
new ImmutableMap .Builder <String , String >(2 )
372
373
.put (MetricsTag .DOMAIN , DOMAIN )
373
- .put (MetricsTag .TASK_LIST , factory . getStickyTaskListName () )
374
+ .put (MetricsTag .TASK_LIST , STICKY_TASK_LIST_METRIC_TAG )
374
375
.build ();
375
376
verify (reporter , atLeastOnce ())
376
377
.reportCounter (eq (MetricsType .STICKY_CACHE_HIT ), eq (tags ), anyInt ());
0 commit comments