Merge pull request #47606 from eileencodes/fix-schema-cache-file-test

Fix schema cache file test
This commit is contained in:
Eileen M. Uchitelle 2023-03-08 14:48:37 -05:00 committed by GitHub
commit 3dd5d4900d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,10 +41,14 @@ def test_yaml_dump_and_load
def test_cache_path_can_be_in_directory
cache = SchemaCache.new @connection
filename = "some_dir/schema.json"
tmp_dir = Dir.mktmpdir
filename = File.join(tmp_dir, "schema.json")
assert_not File.exist?(filename)
assert cache.dump_to(filename)
assert File.exist?(filename)
ensure
File.delete(filename)
FileUtils.rm_r(tmp_dir)
end
def test_yaml_dump_and_load_with_gzip