diff --git a/src/unit-tests/graphql-aspnet-tests/Execution/DocumentDescriptionTests.cs b/src/unit-tests/graphql-aspnet-tests/Execution/DocumentDescriptionTests.cs index 9f32596c..b02b79ee 100644 --- a/src/unit-tests/graphql-aspnet-tests/Execution/DocumentDescriptionTests.cs +++ b/src/unit-tests/graphql-aspnet-tests/Execution/DocumentDescriptionTests.cs @@ -21,6 +21,10 @@ public class DocumentDescriptionTests { private async Task RenderQuery(string queryText, string variableJsonDoc = null) { + // depending on environment (win vs. nix, CRLF vs LF) the tested query text may end in \r\n or \n + // the output will only be in \n, normalize hte input to ensure tests have a uniform start + // e.g. default values passed for multi-line string variables used in tests can be different based on line endings in the test file. + queryText = queryText.Replace("\r\n", "\n"); var server = new TestServerBuilder() .AddController() .Build();