Skip to content

Commit

Permalink
chore: add binding test and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Sep 25, 2024
1 parent 5037b02 commit 14a5fb1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/prop_stateful_client_conn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ default_listen_opts() ->
default_conn_opts() ->
[
{alpn, ["prop"]},
%% , {sslkeylogfile, "/tmp/SSLKEYLOGFILE"}
%%{sslkeylogfile, "/tmp/SSLKEYLOGFILE"},
{verify, none},
{idle_timeout_ms, 0},
{cacertfile, "./msquic/submodules/openssl/test/certs/rootCA.pem"},
Expand Down
2 changes: 1 addition & 1 deletion test/prop_stateful_server_conn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ default_listen_opts() ->
default_conn_opts() ->
[
{alpn, ["prop"]},
%% , {sslkeylogfile, "/tmp/SSLKEYLOGFILE"}
%% {sslkeylogfile, "/tmp/SSLKEYLOGFILE"},
{verify, none},
{idle_timeout_ms, 5000},
{cacertfile, "./msquic/submodules/openssl/test/certs/rootCA.pem"},
Expand Down
2 changes: 1 addition & 1 deletion test/prop_stateful_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ default_listen_opts() ->
default_conn_opts() ->
[
{alpn, ["prop"]},
%% , {sslkeylogfile, "/tmp/SSLKEYLOGFILE"}
%% {sslkeylogfile, "/tmp/SSLKEYLOGFILE"},
{verify, none},
{idle_timeout_ms, 0},
{handshake_idle_timeout_ms, 10000},
Expand Down
2 changes: 1 addition & 1 deletion test/quicer_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@ tc_conn_opt_sslkeylogfile(Config) ->
),
quicer:close_connection(Conn),
timer:sleep(100),
{ok, #file_info{type = regular}} = file:read_file_info("SSLKEYLOGFILE").
{ok, #file_info{type = regular}} = file:read_file_info(TargetFName).

tc_insecure_traffic(Config) ->
Port = select_port(),
Expand Down
2 changes: 1 addition & 1 deletion test/quicer_connection_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ tc_conn_basic_verify_peer(Config) ->
443,
[
{verify, verify_peer},
%, {sslkeylogfile, "/tmp/SSLKEYLOGFILE"}
% {sslkeylogfile, "/tmp/SSLKEYLOGFILE"},
{peer_unidi_stream_count, 3},
{alpn, ["h3"]}
| Config
Expand Down
6 changes: 6 additions & 0 deletions test/quicer_listener_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ tc_get_listener_opt_addr(Config) ->
{ok, {{0, 0, 0, 0}, Port}} = quicer:getopt(L, local_address),
quicer:close_listener(L).

tc_get_listener_opt_addr_specified(Config) ->
Port = select_port(),
{ok, L} = quicer:listen("127.0.0.1:" ++ integer_to_list(Port), default_listen_opts(Config)),
?assertEqual({ok, {{127, 0, 0, 1}, Port}}, quicer:getopt(L, local_address)),
quicer:close_listener(L).

tc_get_listener_opt_stats(Config) ->
Port = select_port(),
{ok, L} = quicer:listen(Port, default_listen_opts(Config)),
Expand Down
2 changes: 1 addition & 1 deletion test/quicer_snb_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,7 @@ default_stream_opts() ->
default_conn_opts() ->
[
{alpn, ["sample"]},
%% , {sslkeylogfile, "/tmp/SSLKEYLOGFILE"}
%% {sslkeylogfile, "/tmp/SSLKEYLOGFILE"},
{verify, none},
{idle_timeout_ms, 5000}
].
Expand Down

0 comments on commit 14a5fb1

Please sign in to comment.