Skip to content

Commit 79efa8d

Browse files
test: remove wrong tests
1 parent 8e686bb commit 79efa8d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lambdas/functions/webhook/src/runners/dispatch.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,6 @@ describe('Dispatcher', () => {
216216
expect(canRunJob(workflowLabels, runnerLabels, true, false)).toBe(false);
217217
});
218218

219-
it('should not accept jobs not providing labels if exact match is.', () => {
220-
const workflowLabels: string[] = [];
221-
const runnerLabels = [['self-hosted', 'linux', 'x64']];
222-
expect(canRunJob(workflowLabels, runnerLabels, true, false)).toBe(false);
223-
});
224-
225-
it('should accept jobs not providing labels and exact match is set to false.', () => {
226-
const workflowLabels: string[] = [];
227-
const runnerLabels = [['self-hosted', 'linux', 'x64']];
228-
expect(canRunJob(workflowLabels, runnerLabels, false, false)).toBe(true);
229-
});
230-
231219
it('should filter out ghr- and ghr-run- labels when enableDynamicLabels is true.', () => {
232220
const workflowLabels = ['self-hosted', 'linux', 'x64', 'ghr-ec2-instance-type:t3.large', 'ghr-run-id:12345'];
233221
const runnerLabels = [['self-hosted', 'linux', 'x64']];

0 commit comments

Comments
 (0)