Skip to content

Commit

Permalink
test: SerializationTest passes on Windows (3113)
Browse files Browse the repository at this point in the history
Signed-off-by: Sintivrousai <[email protected]>
  • Loading branch information
Sintivrousai authored Jun 4, 2024
1 parent 8a7c363 commit 8ca05f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ void saveYaml_withConfigMap_savesFile(@TempDir Path targetDir) throws IOExceptio
class MultiLineStringsSerializedToScalarYamlBlocks {
@Test
@DisplayName("string ends with newline, then add | to use block style in serialized object")
void whenStringEndingWithNewline_thenAddBlockIndicatorInSerializedObject(@TempDir Path targetDir) throws IOException {
void unmarshal_whenStringEndingWithNewline_thenAddBlockIndicatorInSerializedObject(@TempDir Path targetDir) throws IOException {
// Given
final File targetFile = targetDir.resolve("cm.yaml").toFile();
final ConfigMap source = new ConfigMapBuilder()
.withNewMetadata()
.addToAnnotations("proxy.istio.io/config", String.format("proxyMetadata:%n ISTIO_META_DNS_CAPTURE: \"false\"%nholdApplicationUntilProxyStarts: true\n"))
.addToAnnotations("proxy.istio.io/config", "proxyMetadata:\n ISTIO_META_DNS_CAPTURE: \"false\"\nholdApplicationUntilProxyStarts: true\n")
.endMetadata()
.build();
// When
Expand Down

0 comments on commit 8ca05f2

Please sign in to comment.