Skip to content
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

test: Fix deprecation warning on incorrect assertion #396

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

Ferenc-
Copy link
Contributor

@Ferenc- Ferenc- commented Jun 25, 2024

Fixes the following error message

DEPRECATED: Use assert_nil if expecting nil
from /workspace/ruby-sensor/test/secrets_test.rb:97.
This will fail in Minitest 6.

Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should consider using assert_nil in the below lines as well. We've already changed it here in a previous commit.

tracer_test.rb#L124
tracer_test.rb#L154

@Ferenc- Ferenc- force-pushed the fix-deprecated-warning branch from 327847c to 2a6507d Compare June 25, 2024 08:52
@Ferenc-
Copy link
Contributor Author

Ferenc- commented Jun 25, 2024

I think we should consider using assert_nil in the below lines as well. We've already changed it here in a previous commit.

tracer_test.rb#L124 tracer_test.rb#L154

Good point. I have changed these and some more in sidekiq tests.

@Ferenc- Ferenc- requested a review from GSVarsha June 25, 2024 08:53
Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect to me!

Copy link
Contributor

@arjun-rajappa arjun-rajappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Ferenc- Ferenc- merged commit 4280b2b into master Jun 25, 2024
170 checks passed
@Ferenc- Ferenc- deleted the fix-deprecated-warning branch June 25, 2024 09:47
Fixes the following error message
````
DEPRECATED: Use assert_nil if expecting nil
from /workspace/ruby-sensor/test/secrets_test.rb:97.
This will fail in Minitest 6.
````

Signed-off-by: Ferenc Géczi <ferenc.geczi@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants