diff --git a/src/batchgetitem.zig b/src/batchgetitem.zig index de21758..2c43b6d 100644 --- a/src/batchgetitem.zig +++ b/src/batchgetitem.zig @@ -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 = \\{ diff --git a/src/batchwriteitem.zig b/src/batchwriteitem.zig index 21633ca..aba0ec9 100644 --- a/src/batchwriteitem.zig +++ b/src/batchwriteitem.zig @@ -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); diff --git a/src/createtable.zig b/src/createtable.zig index 8f7e5df..6642008 100644 --- a/src/createtable.zig +++ b/src/createtable.zig @@ -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),