-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Changes receiver and inhibition rules arrays to slices of value items instead of pointer items #3209
Conversation
516115d
to
bd17255
Compare
@simonpasquier could you please take a look whenever you get the chance! |
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.
lgtm, the test failures are unrelated to your change and investigated in #3216
@@ -150,3 +150,37 @@ inhibit_rules: | |||
|
|||
at.Run() | |||
} | |||
|
|||
func TestEmptyInhibitionRule(t *testing.T) { |
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.
We can keep only the test in test/with_api_v2/acceptance since it's irrespective of the API versions.
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.
Thanks for the review! Removed the test.
bd17255
to
7772afb
Compare
could you rebase on top of |
Signed-off-by: Rohan Gupta <rohangupta.0927@gmail.com>
7772afb
to
df1dc0d
Compare
@simonpasquier looks like the tests all pass now. |
thanks! |
To prevent panics caused by null-pointer exceptions for empty array objects, I used @simonpasquier's suggestion by changing the arrays to slices of value items instead of pointer items.
Fixes #3204