Skip to content

Commit

Permalink
Partially roll-back the JSON checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed May 27, 2020
1 parent 5bab21c commit 02bee9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/80torture/20json.pl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
content => '{"msgtype": "sytest.dummy", "body": Infinity}',
content_type => "application/json",
)->main::expect_bad_json,
)->main::expect_http_400,

$user->http->do_request(
method => "POST",
Expand All @@ -108,7 +108,7 @@
},
content => '{"msgtype": "sytest.dummy", "body": -Infinity}',
content_type => "application/json",
)->main::expect_bad_json,
)->main::expect_http_400,

$user->http->do_request(
method => "POST",
Expand All @@ -118,6 +118,6 @@
},
content => '{"msgtype": "sytest.dummy", "body": NaN}',
content_type => "application/json",
)->main::expect_bad_json,
)->main::expect_http_400,
);
};

0 comments on commit 02bee9e

Please sign in to comment.