Skip to content

Commit

Permalink
Add backwards compatibility note to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juhlig authored and essen committed Nov 12, 2024
1 parent 53a8db1 commit 0c7d350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/acceptor_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ misc_connection_alarms(_) ->
end,
Alarms0 = #{
test1 => Alarm1 = #{type => num_connections, threshold => 2, cooldown => 0, callback => AlarmCallback},
%% The test2 alarm uses the misspelled treshold key to test for backwards compatibility.
%% @TODO: Change to use the proper spelling when treshold gets removed in Ranch 3.0.
test2 => Alarm2 = #{type => num_connections, treshold => 3, cooldown => 0, callback => AlarmCallback}
},
ConnectOpts = [binary, {active, false}, {packet, raw}],
Expand Down

0 comments on commit 0c7d350

Please sign in to comment.