Skip to content

Commit

Permalink
Fix nondeterministic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamthom-amzn committed Mar 4, 2022
1 parent 1dfdc5b commit b978a2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public void projectionsThatCannotCreateModelsFailGracefully() throws URISyntaxEx
assertTrue(result.anyBroken());

// Now validate that we got the failure to serialize the model.
List<ValidationEvent> events = result.getProjectionResults().get(0).getEvents();
List<ValidationEvent> events = result.getProjectionResultsMap().get("foo").getEvents();
assertThat(events, not(empty()));
assertThat(events.get(0).getSeverity(), is(Severity.ERROR));
assertThat(events.get(0).getMessage(), containsString("Unable to serialize trait"));
Expand Down

0 comments on commit b978a2c

Please sign in to comment.