From 4cc0b8d2ca80f4de3a0217184e9ef982f2407c05 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 14 Dec 2023 07:13:03 +0000 Subject: [PATCH] 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 --- test/unit/project_nested_set_concurrency_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/project_nested_set_concurrency_test.rb b/test/unit/project_nested_set_concurrency_test.rb index e835d2b50..077731040 100644 --- a/test/unit/project_nested_set_concurrency_test.rb +++ b/test/unit/project_nested_set_concurrency_test.rb @@ -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 -- 2.39.5