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

Errors on tests running in parallel #55

Open
marcelopazzo opened this issue Sep 26, 2014 · 0 comments
Open

Errors on tests running in parallel #55

marcelopazzo opened this issue Sep 26, 2014 · 0 comments

Comments

@marcelopazzo
Copy link

Hi,

I have a RefineryCMS project updated to latest stable version (2.1.3) and after integrate my tests with parallel_tests and zeus (using zeus-parallel_tests), this error is happening randomly on different tests

     Failure/Error: Unable to find matching line from backtrace
     Errno::ENOENT:
       No such file or directory - /Users/marcelopazzo/dev/project/tmp/index/test/refinery/user/114_101_102.ind.tmp
     # <internal:prelude>:10:in `synchronize'
     # -e:1:in `<main>'

These errors looks like what @daveharris reported on #53

I'm trying to fix the errors using different index folders for each processor, but for some reason, even with the code below on my spec_helper.rb, some tests are looking for files on the default index folder:

RSpec.configure do |config|
  config.before :suite do
    ActsAsIndexed.configuration.index_file = [Rails.root, 'tmp', "parallel_index#{ENV['TEST_ENV_NUMBER']}"]
  end
end

Do you have any advice on how I can make this work?

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

No branches or pull requests

1 participant