Skip to content

Commit

Permalink
Fix flaky PipelineConfigurationFileReaderTest (opensearch-project#4386)
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Gray <tylgry@amazon.com>
  • Loading branch information
graytaylor0 authored Apr 3, 2024
1 parent f7bc4cb commit a501ad7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ void getPipelineConfigurationInput_streams_from_existing_directory() throws IOEx

try (final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStreams.get(0), StandardCharsets.UTF_8))) {
final String content = bufferedReader.lines().collect(Collectors.joining(System.lineSeparator()));
assertThat(content, equalTo(yamlContentPipelineOne));
assertThat(content.equals(yamlContentPipelineOne) || content.equals(yamlContentPipelineTwo), equalTo(true));
}

try (final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStreams.get(1), StandardCharsets.UTF_8))) {
final String content = bufferedReader.lines().collect(Collectors.joining(System.lineSeparator()));
assertThat(content, equalTo(yamlContentPipelineTwo));
assertThat(content.equals(yamlContentPipelineOne) || content.equals(yamlContentPipelineTwo), equalTo(true));
}
}
}

0 comments on commit a501ad7

Please sign in to comment.