-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Trigger_Never to Prepare features check #31472
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,6 @@ func TestUnimplemented(t *testing.T) { | |
{pipeline: primitives.TriggerAfterProcessingTime}, | ||
{pipeline: primitives.TriggerAfterSynchronizedProcessingTime}, | ||
{pipeline: primitives.TriggerElementCount}, | ||
{pipeline: primitives.TriggerNever}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is default, does it make sense to remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests removed from this list must be added to another test that expects them to pass. Otherwise we're opening a test regression gap for ourselves down the road. So, if you're removing this because TestUnimplmented started to fail, then you must move it to the TestImplmenented list down below. If this test didn't start to fail, then we should leave it here to show we aren't fully done work on TriggerNever. |
||
{pipeline: primitives.TriggerOrFinally}, | ||
{pipeline: primitives.TriggerRepeat}, | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original
ws.GetTrigger()
returns a*pipepb.Trigger
which would have never passed== &pipepb.Trigger_Default{}
. In order for the existing check to evaluate equality would have needed cmp.Equals. Checking theString()
was easier and still achieves the desired outcome.