Skip to content

Commit

Permalink
Merge pull request #47606 from eileencodes/fix-schema-cache-file-test
Browse files Browse the repository at this point in the history
Fix schema cache file test
  • Loading branch information
eileencodes committed Mar 8, 2023
2 parents 9898468 + 857b4af commit 3dd5d49
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 3dd5d49

Please sign in to comment.