瀏覽代碼

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{
 			{