diff options
author | Anders Svensson <[email protected]> | 2017-04-27 22:09:59 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-06-13 13:50:06 +0200 |
commit | cfbe969341068623e609fd25c9c5f56b1fdc9458 (patch) | |
tree | 6c7844a9913ea7b8529314295d57c2056ed6707e /lib/diameter/test/diameter_codec_SUITE.erl | |
parent | 2e222053c23054dafcbd9ced1072667a3d7f065a (diff) | |
download | otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.tar.gz otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.tar.bz2 otp-cfbe969341068623e609fd25c9c5f56b1fdc9458.zip |
Adapt test suites to modified encode/decode
Diffstat (limited to 'lib/diameter/test/diameter_codec_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_codec_SUITE.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_codec_SUITE.erl b/lib/diameter/test/diameter_codec_SUITE.erl index 0666bb9d89..9f08f49f9f 100644 --- a/lib/diameter/test/diameter_codec_SUITE.erl +++ b/lib/diameter/test/diameter_codec_SUITE.erl @@ -285,7 +285,14 @@ recode(Msg) -> recode(Msg, diameter_gen_base_rfc6733). recode(#diameter_packet{} = Pkt, Dict) -> - diameter_codec:decode(Dict, diameter_codec:encode(Dict, Pkt)); + diameter_codec:decode(Dict, opts(Dict), diameter_codec:encode(Dict, Pkt)); recode(Msg, Dict) -> recode(#diameter_packet{msg = Msg}, Dict). + +opts(Mod) -> + #{dictionary => Mod, + string_decode => false, + strict_mbit => true, + rfc => 6733, + failed_avp => false}. |