Fix flakiness in new tests due to change in hash seed
This commit is contained in:
parent
c9bddd9c9a
commit
b403906bc8
2 changed files with 7 additions and 2 deletions
|
@ -10,7 +10,7 @@ from util.morecollections import AttrDict
|
||||||
('', InvalidPayloadException, 'Missing expected payload'),
|
('', InvalidPayloadException, 'Missing expected payload'),
|
||||||
('{}', InvalidPayloadException, "'commit' is a required property"),
|
('{}', InvalidPayloadException, "'commit' is a required property"),
|
||||||
|
|
||||||
('{"commit": "foo", "ref": "bar", "default_branch": "baz"}',
|
('{"commit": "foo", "ref": "refs/heads/something", "default_branch": "baz"}',
|
||||||
InvalidPayloadException, "u'foo' does not match '^([A-Fa-f0-9]{7,})$'"),
|
InvalidPayloadException, "u'foo' does not match '^([A-Fa-f0-9]{7,})$'"),
|
||||||
|
|
||||||
('{"commit": "11d6fbc", "ref": "refs/heads/something", "default_branch": "baz"}', None, None),
|
('{"commit": "11d6fbc", "ref": "refs/heads/something", "default_branch": "baz"}', None, None),
|
||||||
|
|
|
@ -78,7 +78,12 @@ def test_list_build_source_namespaces(githost_trigger):
|
||||||
'id': 'someorg'
|
'id': 'someorg'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
assert githost_trigger.list_build_source_namespaces() == namespaces_expected
|
|
||||||
|
found = githost_trigger.list_build_source_namespaces()
|
||||||
|
found.sort()
|
||||||
|
|
||||||
|
namespaces_expected.sort()
|
||||||
|
assert found == namespaces_expected
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('namespace, expected', [
|
@pytest.mark.parametrize('namespace, expected', [
|
||||||
|
|
Reference in a new issue