fix tests
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 6m5s

This commit is contained in:
Emil Lerch 2024-03-04 15:06:06 -08:00
parent f56360d501
commit 53f29aac64
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
3 changed files with 12 additions and 12 deletions

View File

@ -429,7 +429,7 @@ test "basic request parsing" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);
@ -462,7 +462,7 @@ test "read item" {
Account.test_retain_db = true;
defer Account.test_retain_db = false;
const allocator = std.testing.allocator;
const account_id = "1234";
const account_id = 1234;
var db = try Account.dbForAccount(allocator, account_id);
defer allocator.destroy(db);
defer Account.testDbDeinit();
@ -557,7 +557,7 @@ test "read item" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);
@ -572,7 +572,7 @@ test "read item" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
.event_data =
\\{

View File

@ -356,7 +356,7 @@ test "basic request parsing failure" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);
@ -393,7 +393,7 @@ test "basic request parsing" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);
@ -472,7 +472,7 @@ test "all types request parsing" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);
@ -508,7 +508,7 @@ test "write item" {
Account.test_retain_db = true;
defer Account.testDbDeinit();
const allocator = std.testing.allocator;
const account_id = "1234";
const account_id = 1234;
var db = try Account.dbForAccount(allocator, account_id);
defer allocator.destroy(db);
defer Account.testDbDeinit();
@ -586,7 +586,7 @@ test "write item" {
.headers = undefined,
.status = .ok,
.reason = "",
.account_id = "1234",
.account_id = 1234,
.allocator = allocator,
};
var al = std.ArrayList(u8).init(allocator);

View File

@ -558,7 +558,7 @@ test "can create a table" {
\\ "Tags": [{"Key": "Owner", "Value": "blueTeam"}]
\\ }
,
.account_id = "1234",
.account_id = 1234,
.status = .ok,
.reason = null,
.headers = std.http.Headers.init(allocator),
@ -589,7 +589,7 @@ test "will fail an unrecognized request parameter" {
\\ "Tags": [{"Key": "Owner", "Value": "blueTeam"}]
\\ }
,
.account_id = "1234",
.account_id = 1234,
.status = .ok,
.reason = null,
.headers = std.http.Headers.init(allocator),
@ -628,7 +628,7 @@ fn failOnShortTableNames(format: AuthenticatedRequest.OutputFormat) !void {
\\ "Tags": [{"Key": "Owner", "Value": "blueTeam"}]
\\ }
,
.account_id = "1234",
.account_id = 1234,
.status = .ok,
.reason = null,
.headers = std.http.Headers.init(allocator),