Skip to content

Commit 9bc1d8a

Browse files
authored
ci: add jruby (#193)
1 parent 938ce6c commit 9bc1d8a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- {redis: '6.2', ruby: '3.1'}
3636
- {redis: '6.2', ruby: '3.0'}
3737
- {redis: '5.0', ruby: '2.7'}
38+
- {ruby: 'jruby'}
3839
- {task: test_cluster_state, redis: '7.0', replica: '2', compose: compose.replica.yaml}
3940
- {task: test_cluster_state, redis: '6.2', replica: '2', compose: compose.replica.yaml}
4041
- {task: test_cluster_broken, redis: '7.0', restart: 'no'}

test/test_concurrency.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def teardown
1717
end
1818

1919
def test_forking
20+
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby].include?(RUBY_ENGINE)
21+
2022
pids = Array.new(MAX_THREADS) do
2123
Process.fork do
2224
ATTEMPTS.times { MAX_THREADS.times { |i| @client.call('INCR', "key#{i}") } }
@@ -34,6 +36,8 @@ def test_forking
3436
end
3537

3638
def test_forking_with_pipelining
39+
skip("fork is not available on #{RUBY_ENGINE}") if %w[jruby].include?(RUBY_ENGINE)
40+
3741
pids = Array.new(MAX_THREADS) do
3842
Process.fork do
3943
@client.pipelined { |pi| ATTEMPTS.times { MAX_THREADS.times { |i| pi.call('INCR', "key#{i}") } } }

0 commit comments

Comments
 (0)