diff --git a/test/test_http_cookie_jar.rb b/test/test_http_cookie_jar.rb index 505a45e..8e5e252 100644 --- a/test/test_http_cookie_jar.rb +++ b/test/test_http_cookie_jar.rb @@ -807,8 +807,10 @@ module TestHTTPCookieJar db = jar.store.instance_variable_get(:@db) break } - GC.start - assert_send [db, :closed?] + at_exit { + GC.start + assert_send [db, :closed?] + } end def test_upgrade_mozillastore