ソースを参照

Fix flaky test case

ensure the user filter is set on the rule so notification triggers
only when expected.

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 4 週間 前
コミット
cdaefbf04a
1 ファイル変更3 行追加0 行削除
  1. 3 0
      internal/common/protocol_test.go

+ 3 - 0
internal/common/protocol_test.go

@@ -7397,6 +7397,9 @@ func TestEventRuleEmailField(t *testing.T) {
 		Trigger: dataprovider.EventTriggerProviderEvent,
 		Conditions: dataprovider.EventConditions{
 			ProviderEvents: []string{"add"},
+			Options: dataprovider.ConditionOptions{
+				ProviderObjects: []string{"user"},
+			},
 		},
 		Actions: []dataprovider.EventAction{
 			{