Skip to content

Commit 9c2259e

Browse files
committed
Fix log_level in test
1 parent b710ca9 commit 9c2259e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/helper.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ def verify_gc_compaction
8181
prepare_keyspace
8282
prepare_table
8383

84-
Ilios::Cassandra.log_level(Ilios::Cassandra::LOG_TRACE)
84+
$default_test_log_level = Ilios::Cassandra::LOG_TRACE
85+
Ilios::Cassandra.log_level($default_test_log_level)

test/test_cassandra.rb

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
require_relative 'helper'
44

55
class CassandraTest < Minitest::Test
6+
def teardown
7+
Ilios::Cassandra.log_level($default_test_log_level)
8+
end
9+
610
def test_log_level
711
assert_raises(TypeError) { Ilios::Cassandra.log_level(Object.new) }
812

0 commit comments

Comments
 (0)