Skip to content

Commit 916375e

Browse files
committed
Skip threaded cache test on Windows
The test_get_or_create test uses Thread.join which can hang on Windows, causing CI tests to run indefinitely. This test creates 30 threads to test concurrent cache access. On Windows with certain Ruby versions (observed with 3.3.10), Thread.join appears to hang or take an extremely long time. Skip this test on Windows platforms (mingw, mswin, cygwin) to prevent CI timeouts.
1 parent 0711fb6 commit 916375e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/duckdb_test/instance_cache_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def test_s_new
1212
end
1313

1414
def test_get_or_create
15+
skip 'Thread.join hangs on Windows' if RUBY_PLATFORM.match?(/mingw|mswin|cygwin/)
16+
1517
cache = DuckDB::InstanceCache.new
1618
path = 'test_shared_db.db'
1719
30.times do

0 commit comments

Comments
 (0)