Skip to content

Commit

Permalink
fix unit test that sometimes failed due to unordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
hplahar committed Sep 28, 2015
1 parent 8c74c7e commit 6da0c1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void testGetPartsByFields() throws Exception {
searchFields.add(new CustomField("type", "promoter"));
results = fields.getPartsByFields(userId, searchFields);
Assert.assertEquals(2, results.size());
Assert.assertEquals(strain.getId(), results.get(0).getId());
Assert.assertTrue(strain.getId() == results.get(0).getId() || results.get(1).getId() == strain.getId());

// test two
searchFields.clear();
Expand Down

0 comments on commit 6da0c1e

Please sign in to comment.