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

skips thread safety test #115

Closed
wants to merge 1 commit into from
Closed

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Feb 22, 2024

more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:168:in
`block (5 levels) in <top (required)>': undefined method `thread_safety' for

          test_class.thread_safety(true)
                    ^^^^^^^^^^^^^^
	from more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:167:in
	    `times'
	from more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:167:in
	    `block (4 levels) in <top (required)>'

There may be something else going on here.
Just putting out there so we can fix

```
more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:168:in
`block (5 levels) in <top (required)>': undefined method `thread_safety' for

          test_class.thread_safety(true)
                    ^^^^^^^^^^^^^^
	from more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:167:in
	    `times'
	from more_core_extensions/spec/core_ext/module/cache_with_timeout_spec.rb:167:in
	    `block (4 levels) in <top (required)>'
```
@miq-bot
Copy link
Member

miq-bot commented Feb 22, 2024

Checked commit kbrock@035eb68 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@@ -162,6 +162,7 @@
# and one tries to force reload, there is a small window where as it
# clears the current value, the other thread could get nil.
test_class.cache_with_timeout(:thread_safety) { 2 }
skip "thread safety not supported" unless test_class.respond_to?(:thread_safety)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should skip the tests, but instead fix it.

Copy link
Member

Choose a reason for hiding this comment

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

Let's discuss in #77

@Fryguy Fryguy closed this Feb 28, 2024
@kbrock kbrock deleted the thread_safety branch February 28, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants