Skip to content

Commit 169d800

Browse files
committed
don't try to use mock_dns on ruby 2.7
1 parent d872044 commit 169d800

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# the standalone one.
44

55
name: Run Driver Tests
6-
on: #[push, pull_request]
6+
on: [ workflow_dispatch ]
77
jobs:
88
build:
99
name: "${{matrix.os}} ruby-${{matrix.ruby}} mongodb-${{matrix.mongodb}} ${{matrix.topology}}"

spec/integration/reconnect_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
# thread.kill should've similarly failed, but it doesn't.
112112
fails_on_jruby
113113

114+
minimum_mri_version '3.0.0'
115+
114116
it 'recreates SRV monitor' do
115117
wait_for_discovery
116118

spec/integration/srv_monitoring_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
# NotImplementedError: recvmsg_nonblock is not implemented
7777
fails_on_jruby
7878

79+
# mock dns implementation doesn't play nice with 2.7, etc.
80+
minimum_mri_version '3.0.0'
81+
7982
around do |example|
8083
# Speed up the tests by listening on the fake ports we are using.
8184
done = false

0 commit comments

Comments
 (0)