Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6670931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:19:36+00:00 2026-05-26T03:19:36+00:00

I use an after_commit filter in several places in my code. In order to

  • 0

I use an after_commit filter in several places in my code. In order to get my cucumber tests working, I had to use a patch – http://outofti.me/post/4777884779/test-after-commit-hooks-with-transactional-fixtures

It works fine locally both when run standalone or under Autotest. I also try to run the tests under Jenkins but almost all the tests fail with the following error message.

can't dump File (TypeError)
  /var/lib/jenkins/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize'
  ./features/support/after_commit_monkey_patch.rb:20:in `transaction'
  ./features/support/after_commit_monkey_patch.rb:18:in `transaction'

Can anyone help me figure out what’s going on? I’m confused why the same code works in one situation but not another. The environments are as identical as possible using RVM etc.

Thanks,
Graeme

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:19:37+00:00Added an answer on May 26, 2026 at 3:19 am

    After a bit of searching (and thanks to Andy for the clue) it didn’t have anything to do with the monkey-patch – it was just reporting the problem.

    I had the cache for testing set to …

    config.cache_store = nil
    

    I changed it to …

    config.cache_store = :dalli_store, { :namespace => "TEST" }
    

    … instead and it works without fault now. It still doesn’t explain why my tests work locally but didn’t under Jenkins with a nil cache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working folder. I use Commit by right-clicking on it after my
Basically I want to get the number of lines-of-code in the repository after each
Is is possible to use FragmentTransaction and the remove() method to get rid of
I'm on rails 3.0.8 and trying to use the after_commit callback. It's defined here:
Right now I use an 'after_commit :share_all' on my posts model to call the
I'm trying to use an after_commit method to pass parameters from the post to
After writing thousands of lines of code I use valgrind and am horrified to
I find myself doing the following a lot: C:\Code>hg pull pulling from http://server/FogBugz/kiln/Repo/Project/Rebuild/trunk searching
I'm trying to detect Use after free() bugs, otherwise known as Dangling pointers. I
Here is my basic use case: After Labview receives a trigger from external hardware

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.