Skip to content

Commit ab40243

Browse files
update workflow poller assertion
1 parent 546c149 commit ab40243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/test/src/test-worker-poller-autoscale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test.serial('Can run autoscaling polling worker', async (t) => {
4848
const activity_pollers = matches.filter((l) => l.includes('activity_task'));
4949
t.is(activity_pollers.length, 1, 'Should have exactly one activity poller metric');
5050
t.true(activity_pollers[0].endsWith('2'), 'Activity poller count should be 2');
51-
const workflow_pollers = matches.filter((l) => l.includes('workflow_task'));
51+
const workflow_pollers = matches.filter((l) => l.includes('workflow_task') && l.includes(taskQueue));
5252
t.is(workflow_pollers.length, 2, 'Should have exactly two workflow poller metrics (sticky and non-sticky)');
5353

5454
// There's sticky & non-sticky pollers, and they may have a count of 1 or 2 depending on

0 commit comments

Comments
 (0)