Skip to content

Commit

Permalink
Fix test_assign_labels_too_many test
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinov-Innokentii committed Dec 13, 2024
1 parent 233797f commit 61a6040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/apps/labels/tests/test_alert_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def test_assign_labels_too_many(
label_key, label_value = make_label_key_and_value(organization, key_name="a", value_name="test")
alert_receive_channel = make_alert_receive_channel(
organization,
alert_group_labels_custom=[[label_key.id, label_value.id, None]],
alert_group_labels_template='{{ {"b": payload.b} | tojson }}',
)
make_static_label_config(organization, alert_receive_channel, key_name="a", value_name="test")
make_static_label_config(organization, alert_receive_channel, key_name="c", value_name="test")

with mock.patch("apps.labels.alert_group_labels.MAX_LABELS_PER_ALERT_GROUP", 2):
Expand Down

0 comments on commit 61a6040

Please sign in to comment.