Skip to content

Commit cdaefbf

Browse files
committed
Fix flaky test case
ensure the user filter is set on the rule so notification triggers only when expected. Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
1 parent 5c3aa82 commit cdaefbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/common/protocol_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7397,6 +7397,9 @@ func TestEventRuleEmailField(t *testing.T) {
73977397
Trigger: dataprovider.EventTriggerProviderEvent,
73987398
Conditions: dataprovider.EventConditions{
73997399
ProviderEvents: []string{"add"},
7400+
Options: dataprovider.ConditionOptions{
7401+
ProviderObjects: []string{"user"},
7402+
},
74007403
},
74017404
Actions: []dataprovider.EventAction{
74027405
{

0 commit comments

Comments
 (0)