Skip to content

Commit

Permalink
Make websockets_SUITE:secure_socket pass
Browse files Browse the repository at this point in the history
OTP changed default ssl verify option in

    commit bb3603db8459e13e9e5f27c4fb46ca59ee8e4a39

    ssl: Change client default verify

Adding {verify, verify_none} to websockets_SUITE:sslopen/2 makes the
test pass, which could be ok short term. The better long term option is
to generate proper TLS data for testing.
  • Loading branch information
avtobiff committed Jul 27, 2023
1 parent caf4588 commit a09bec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testsuite/websockets_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,8 @@ open(Host, Port) ->
gen_tcp:connect(Host, Port, Opts).

sslopen(Host, Port) ->
Opts = [{send_timeout, 2000}, binary, {packet, raw}, {active, false}],
Opts = [{send_timeout, 2000}, binary, {packet, raw}, {active, false},
{verify, verify_none}],
case ssl:connect(Host, Port, Opts) of
{ok, Sock} -> {ok, {ssl, Sock}};
{error, Reason} -> {error, Reason}
Expand Down

0 comments on commit a09bec4

Please sign in to comment.