fix: trace ct failed

This commit is contained in:
Zhongwen Deng 2022-04-24 11:12:40 +08:00
parent 5223c3ee61
commit 2a25767112
1 changed files with 1 additions and 7 deletions

View File

@ -55,13 +55,7 @@ t_http_test(_Config) ->
ErrorTrace = #{}, ErrorTrace = #{},
{error, {"HTTP/1.1", 400, "Bad Request"}, Body} = {error, {"HTTP/1.1", 400, "Bad Request"}, Body} =
request_api(post, api_path("trace"), Header, ErrorTrace), request_api(post, api_path("trace"), Header, ErrorTrace),
?assertEqual( ?assertMatch(#{<<"code">> := <<"BAD_REQUEST">>} = json(Body)),
#{
<<"code">> => <<"BAD_REQUEST">>,
<<"message">> => <<"name : mandatory_required_field">>
},
json(Body)
),
Name = <<"test-name">>, Name = <<"test-name">>,
Trace = [ Trace = [