Ver Fonte

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 há 4 semanas atrás
pai
commit
cdaefbf04a
1 ficheiros alterados com 3 adições e 0 exclusões
  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{
 			{