Fix flakiness in new tests due to change in hash seed

This commit is contained in:
Joseph Schorr 2017-02-13 18:32:32 -05:00
parent c9bddd9c9a
commit b403906bc8
2 changed files with 7 additions and 2 deletions

View file

@ -10,7 +10,7 @@ from util.morecollections import AttrDict
('', InvalidPayloadException, 'Missing expected payload'),
('{}', 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,})$'"),
('{"commit": "11d6fbc", "ref": "refs/heads/something", "default_branch": "baz"}', None, None),

View file

@ -78,7 +78,12 @@ def test_list_build_source_namespaces(githost_trigger):
'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', [