Skip to content

Commit

Permalink
Fix log_level in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Feb 16, 2024
1 parent b710ca9 commit 9c2259e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ def verify_gc_compaction
prepare_keyspace
prepare_table

Ilios::Cassandra.log_level(Ilios::Cassandra::LOG_TRACE)
$default_test_log_level = Ilios::Cassandra::LOG_TRACE
Ilios::Cassandra.log_level($default_test_log_level)
4 changes: 4 additions & 0 deletions test/test_cassandra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require_relative 'helper'

class CassandraTest < Minitest::Test
def teardown
Ilios::Cassandra.log_level($default_test_log_level)

Check failure on line 7 in test/test_cassandra.rb

View workflow job for this annotation

GitHub Actions / RuboCop

Style/GlobalVars: Do not introduce global variables.
end

def test_log_level
assert_raises(TypeError) { Ilios::Cassandra.log_level(Object.new) }

Expand Down

0 comments on commit 9c2259e

Please sign in to comment.