fix(TestSetup): undefined behaviour

This commit is contained in:
Simon Hartcher 2025-04-08 11:39:19 +10:00
parent 8ac7aa47f7
commit b5cd321263

View file

@ -1702,7 +1702,7 @@ const TestSetup = struct {
request_options: TestOptions, request_options: TestOptions,
server_thread: std.Thread = undefined, server_thread: std.Thread = undefined,
creds: aws_auth.Credentials = undefined, creds: aws_auth.Credentials = undefined,
client: *Client = undefined, client: Client = undefined,
started: bool = false, started: bool = false,
const Self = @This(); const Self = @This();
@ -1738,8 +1738,8 @@ const TestSetup = struct {
null, null,
); );
aws_creds.static_credentials = self.creds; aws_creds.static_credentials = self.creds;
var client = Client.init(self.allocator, .{}); const client = Client.init(self.allocator, .{});
self.client = &client; self.client = client;
return .{ return .{
.region = "us-west-2", .region = "us-west-2",
.client = client, .client = client,