Skip to content

Commit

Permalink
Fix random unit test error
Browse files Browse the repository at this point in the history
As we use the global Oxidized.config, tests sometime fail when run in a
different order (which is bad)
  • Loading branch information
robertcheramy committed Nov 4, 2024
1 parent 5806287 commit 780a749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
_(result['csv']).must_equal Oxidized::Source::CSV

Oxidized.config.source.http.url = 'http://localhost/nodes'
Oxidized.config.source.http.map.name = 'name'
result = Oxidized.mgr.add_source('http')
_(result['http']).must_equal Oxidized::Source::HTTP
end

it 'differentiates between http classes' do
Oxidized.config.source.http.url = 'http://localhost/nodes'
Oxidized.config.source.http.map.name = 'name'
result = Oxidized.mgr.add_source('http')
_(result['http']).must_equal Oxidized::Source::HTTP

Expand Down

0 comments on commit 780a749

Please sign in to comment.