Skip to content

Commit 8324f27

Browse files
authored
Merge pull request #560 from sparklemotion/flavorjones-test-fixup
Fixup some tests
2 parents 6c274b4 + 3f4c50b commit 8324f27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_database.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ def call action, a, b, c, d
611611

612612
def test_close_with_open_statements
613613
s = @db.prepare("select 'foo'")
614-
@db.close # refute_raises(SQLite3::BusyException)
614+
assert_nothing_raised do # formerly raised SQLite3::BusyException
615+
@db.close
616+
end
615617
ensure
616618
s&.close
617619
end
@@ -662,7 +664,7 @@ def test_load_extension_error
662664

663665
def test_raw_float_infinity
664666
# https://github.com/sparklemotion/sqlite3-ruby/issues/396
665-
skip if SQLite3::SQLITE_LOADED_VERSION >= "3.43.0"
667+
skip if SQLite3::SQLITE_LOADED_VERSION == "3.43.0"
666668

667669
db = SQLite3::Database.new ":memory:"
668670
db.execute("create table foo (temperature float)")

0 commit comments

Comments
 (0)