소스 검색

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