Skip to content

Commit

Permalink
add not serializable test
Browse files Browse the repository at this point in the history
Signed-off-by: Flipez <code@brauser.io>
  • Loading branch information
Flipez committed Mar 14, 2022
1 parent 0ef2a2b commit 6e6694f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions object/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestHTTPObjectMethods(t *testing.T) {
{`def test(){};HTTP.handle("/", test)`, "Invalid handler. Call only supported on instance."},
{`a = HTTP.new(); a.listen(-1)`, "listening on port -1: listen tcp: address -1: invalid port"},
{`a = HTTP.new(); a.listen(80)`, "listening on port 80: listen tcp :80: bind: permission denied"},
{"HTTP.new().to_json()", "HTTP is not serializable"},
}

testInput(t, tests)
Expand Down

0 comments on commit 6e6694f

Please sign in to comment.