1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fixes random failing test by using @async_count@ in order to avoid query caching (#36320).

Patch by @maeda-m.

git-svn-id: https://svn.redmine.org/redmine/trunk@22520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2023-12-14 07:13:03 +00:00
parent c506809ddd
commit 4cc0b8d2ca

View File

@ -38,7 +38,7 @@ class ProjectNestedSetConcurrencyTest < ActiveSupport::TestCase
p = generate_project!
p.destroy
assert_difference 'Project.count', 60 do
assert_difference 'Project.async_count.value', 60 do
threads = []
3.times do |i|
threads << Thread.new(i) do