From 883bc6f52f0c065e37fd83517d345ffd476b253d Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 2 Aug 2023 13:57:25 -0700 Subject: [PATCH] correct the expected response --- src/lambda.zig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lambda.zig b/src/lambda.zig index 7d593bb..6a302b0 100644 --- a/src/lambda.zig +++ b/src/lambda.zig @@ -374,7 +374,12 @@ test "basic request" { const request = \\{"foo": "bar", "baz": "qux"} ; + + // This is what's actually coming back. Is this right? + const expected_response = + \\{ "content": "{"foo": "bar", "baz": "qux"}" } + ; const lambda_response = try lambda_request(allocator, request); - try std.testing.expectEqualStrings(lambda_response, request); defer allocator.free(lambda_response); + try std.testing.expectEqualStrings(expected_response, lambda_response); }