fix query tests by consistently allocating requestid
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emil Lerch 2021-08-12 17:05:30 -07:00
parent 8e4dafbdee
commit 81cc6a8cde
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -268,7 +268,7 @@ pub const Aws = struct {
return FullR{ return FullR{
.response = @field(real_response, @typeInfo(@TypeOf(real_response)).Struct.fields[0].name), .response = @field(real_response, @typeInfo(@TypeOf(real_response)).Struct.fields[0].name),
.response_metadata = .{ .response_metadata = .{
.request_id = real_response.ResponseMetadata.RequestId, .request_id = try self.allocator.dupe(u8, real_response.ResponseMetadata.RequestId),
}, },
.parser_options = parser_options, .parser_options = parser_options,
.raw_parsed = .{ .server = parsed_response }, .raw_parsed = .{ .server = parsed_response },