Skip to content

Commit

Permalink
Run unit tests for Ruby on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Nov 26, 2022
1 parent 5990c6a commit e183ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,15 @@ jobs:
unit-test:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: [ '2.7.6', '3.1.2', 'jruby-9.4.0.0', 'truffleruby-22.3.0' ]
os: ['ubuntu-latest']
include:
- ruby: 2.7.6
os: windows-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/socket_poller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module WebDriver
describe SocketPoller do
before(:context) do
@server_thread = Thread.new do
server = TCPServer.open(9250)
server = TCPServer.open(Platform.localhost, 9250)
Thread.current.thread_variable_set(:server, server)
loop { server.accept.close }
end
Expand Down

0 comments on commit e183ceb

Please sign in to comment.