diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-14 07:13:03 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-14 07:13:03 +0000 |
commit | 4cc0b8d2ca80f4de3a0217184e9ef982f2407c05 (patch) | |
tree | fb6a38e858d74f1bbf749055617095ddf9c6d859 /test/unit/project_nested_set_concurrency_test.rb | |
parent | c506809ddd63d86ba06be0b44dd73a6f20969040 (diff) | |
download | redmine-4cc0b8d2ca80f4de3a0217184e9ef982f2407c05.tar.gz redmine-4cc0b8d2ca80f4de3a0217184e9ef982f2407c05.zip |
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
Diffstat (limited to 'test/unit/project_nested_set_concurrency_test.rb')
-rw-r--r-- | test/unit/project_nested_set_concurrency_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |