Skip to content

Commit c7042e5

Browse files
committed
move response to payload
1 parent 822b912 commit c7042e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Tests.Core/Client/Settings/FlightRecorderExporter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ public static string CreateResponse(string apiName, byte[] responseBytes, string
7878
{
7979
var error = (statusCode < 300 && statusCode >= 200) || statusCode == 404 ? "false" : "true";
8080
var body = BytesToJson(responseBytes);
81-
if (!string.IsNullOrEmpty(args) && !string.IsNullOrEmpty(body)) args += ",";
8281
var contents = $@"{{
8382
""api"": ""{apiName}"",
8483
""origin"": [""nest-integration-tests""],
85-
""args"": {{
86-
{args}
84+
""payload"": {{
8785
{body}
8886
}},
8987
""error"": {error},

0 commit comments

Comments
 (0)