Skip to content

Commit 5d2bc33

Browse files
authored
Apply suggestion from @jardondiego
1 parent 72a31d7 commit 5d2bc33

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/clusterfuzz/_internal/tests/core/swarming/swarming_test.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,6 @@ def test_get_spec_from_config_with_docker_image(self):
9797

9898
self.assertEqual(spec, expected_spec)
9999

100-
def test_get_spec_with_swarming_os_dimension(self):
101-
"""Tests that _get_new_task_spec uses SWARMING_OS_DIMENSION if present."""
102-
job = data_types.Job(
103-
name='libfuzzer_chrome_asan',
104-
platform='LINUX',
105-
environment_string='SWARMING_OS_DIMENSION = custom_os')
106-
job.put()
107-
spec = swarming._get_new_task_spec( # pylint: disable=protected-access
108-
'corpus_pruning', job.name, 'https://download_url')
109-
110-
# Verify that the 'os' dimension is 'custom_os' instead of 'LINUX'.
111-
dimensions = spec.task_slices[0].properties.dimensions
112-
os_dimension = [d.value for d in dimensions if d.key == 'os'][0]
113-
self.assertEqual(os_dimension, 'custom_os')
114-
115100
def test_get_spec_from_config_raises_error_on_unknown_config(self):
116101
"""Tests that _get_new_task_spec raises error when there's no mapping for
117102
the config."""

0 commit comments

Comments
 (0)