aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-08-31 08:57:57 +0200
committerAnders Svensson <[email protected]>2017-09-01 17:22:36 +0200
commit99db256e992591ab5cd03d77adcd4ad8d8a16a7e (patch)
treed53fe461180dfcd056f86bbbaac10d2f924681ca /lib/diameter/test
parenta1b2f90096a70e521fdbcb2176aacf1dcc7c7f0e (diff)
downloadotp-99db256e992591ab5cd03d77adcd4ad8d8a16a7e.tar.gz
otp-99db256e992591ab5cd03d77adcd4ad8d8a16a7e.tar.bz2
otp-99db256e992591ab5cd03d77adcd4ad8d8a16a7e.zip
Tweak {decode_format, false} semantics
Represent the decoded message by its atom-valued name in diameter_packet.msg, which makes trace much more readable. A diameter_avp.value is untouched (ie. undefined): the AVP name is already in the name field.
Diffstat (limited to 'lib/diameter/test')
-rw-r--r--lib/diameter/test/diameter_traffic_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl
index 2bc00bf4a1..403d417636 100644
--- a/lib/diameter/test/diameter_traffic_SUITE.erl
+++ b/lib/diameter/test/diameter_traffic_SUITE.erl
@@ -1161,7 +1161,7 @@ to_map(#diameter_packet{header = H, msg = Rec},
%% No record decode: do it ourselves.
to_map(#diameter_packet{header = H,
- msg = false,
+ msg = Name,
bin = Bin},
#group{server_decoding = false,
strings = B}) ->
@@ -1169,8 +1169,9 @@ to_map(#diameter_packet{header = H,
string_decode => B,
strict_mbit => true,
rfc => 6733},
- #diameter_packet{msg = [_MsgName | _Map] = Msg}
+ #diameter_packet{msg = [MsgName | _Map] = Msg}
= diameter_codec:decode(dict(H), Opts, Bin),
+ {MsgName, _} = {Name, Msg}, %% assert
Msg.
dict(#diameter_header{application_id = Id,