correct the expected response

This commit is contained in:
Emil Lerch 2023-08-02 13:57:25 -07:00
parent ecbe134869
commit 883bc6f52f
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -374,7 +374,12 @@ test "basic request" {
const request = const request =
\\{"foo": "bar", "baz": "qux"} \\{"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); const lambda_response = try lambda_request(allocator, request);
try std.testing.expectEqualStrings(lambda_response, request);
defer allocator.free(lambda_response); defer allocator.free(lambda_response);
try std.testing.expectEqualStrings(expected_response, lambda_response);
} }