Skip to content

Commit

Permalink
exclude failing jruby test (mongoid 8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarthod committed Sep 12, 2024
1 parent 8382452 commit b296d0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
gemfile: rails5-mongoid7
- ruby_version: '3.3'
gemfile: rails-edge
exclude:
- ruby_version: 'jruby'
gemfile: rails7-mongoid8 # JRuby 9.4.8 with Mongoid 8 has trouble finding the Logger::INFO constant

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
Expand Down
13 changes: 4 additions & 9 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
# Test setup
MIGRATIONS_ROOT = 'test/migrations'

Mongoid.configure do |config|
config.load_configuration(
clients: {
default: { hosts: ['localhost:27017'], database: 'mongoid_test' },
shard1: { hosts: ['localhost:27017'], database: 'mongoid_test_s1' }
},
options: { log_level: 2 } # JRuby 9.4.8 with Mongoid 8 has trouble finding the constants otherwise
)
end
Mongoid.load_configuration(clients: {
default: { hosts: ['localhost:27017'], database: 'mongoid_test' },
shard1: { hosts: ['localhost:27017'], database: 'mongoid_test_s1' }
})

require_relative 'models/survey_schema'

Expand Down
10 changes: 0 additions & 10 deletions test/mongoid.yml

This file was deleted.

0 comments on commit b296d0c

Please sign in to comment.