This project is archived and is in readonly mode.

#3530 ✓stale
Matthias Hennemeyer

Thread Scheduling Problem in FragmentCachingTest#test_fragment_for_logging

Reported by Matthias Hennemeyer | December 1st, 2009 @ 04:48 PM

In actionpack/test/controller/caching_test.rb:633

Using Ruby 1.9.1p243, this test fails on the last assertion, because when testing the local events array to contain the triggered events, the queue thread (see activesupport/lib/active_support/notifications/fanout.rb:85) that pushes the events to the local events array hasn't yet been scheduled.

Draining the Notifications Queue by sending #wait to the current notifier object (through ActiveSupport::Notifications.notifier.wait) fixes this problem.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages