diff options
author | Ingela Anderton Andin <[email protected]> | 2017-03-07 11:55:13 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-03-07 11:55:13 +0100 |
commit | b0759a45ffa561b82d97c4704112fcabc8a846d2 (patch) | |
tree | ddefcb5394b7d6fc2373c956485ab30e62e16b29 /lib/ssl/test/ssl_certificate_verify_SUITE.erl | |
parent | 51d486c31096287d994cf9a02f1335336eda5e93 (diff) | |
download | otp-b0759a45ffa561b82d97c4704112fcabc8a846d2.tar.gz otp-b0759a45ffa561b82d97c4704112fcabc8a846d2.tar.bz2 otp-b0759a45ffa561b82d97c4704112fcabc8a846d2.zip |
dtls: Avoid mixup of protocol to test
Diffstat (limited to 'lib/ssl/test/ssl_certificate_verify_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_certificate_verify_SUITE.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssl/test/ssl_certificate_verify_SUITE.erl b/lib/ssl/test/ssl_certificate_verify_SUITE.erl index 64c097018a..4552a4f57d 100644 --- a/lib/ssl/test/ssl_certificate_verify_SUITE.erl +++ b/lib/ssl/test/ssl_certificate_verify_SUITE.erl @@ -115,7 +115,8 @@ init_per_group(tls, Config) -> application:set_env(ssl, protocol_version, Version), application:set_env(ssl, bypass_pem_cache, Version), ssl:start(), - [{protocol, tls}, {version, tls_record:protocol_version(Version)} | Config]; + NewConfig = proplists:delete(protocol, Config), + [{protocol, tls}, {version, tls_record:protocol_version(Version)} | NewConfig]; init_per_group(dtls, Config) -> Version = dtls_record:protocol_version(dtls_record:highest_protocol_version([])), @@ -124,7 +125,8 @@ init_per_group(dtls, Config) -> application:set_env(ssl, protocol_version, Version), application:set_env(ssl, bypass_pem_cache, Version), ssl:start(), - [{protocol, dtls}, {protocol_opts, [{protocol, dtls}]}, {version, dtls_record:protocol_version(Version)} | Config]; + NewConfig = proplists:delete(protocol_opts, proplists:delete(protocol, Config)), + [{protocol, dtls}, {protocol_opts, [{protocol, dtls}]}, {version, dtls_record:protocol_version(Version)} | NewConfig]; init_per_group(active, Config) -> [{active, true}, {receive_function, send_recv_result_active} | Config]; |