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 committed Nov 11, 2024
1 parent 2436ade commit b3dc646
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 @@ -598,6 +598,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 b3dc646

Please sign in to comment.