Files
wasmtime/wasmtime-environ/tests/cache_write_default_config.rs
Artur Jamro febb0cb693 Cache worker
2019-09-18 16:43:27 -07:00

13 lines
381 B
Rust

use tempfile;
use wasmtime_environ::cache_config;
#[test]
fn test_cache_write_default_config() {
let dir = tempfile::tempdir().expect("Can't create temporary directory");
let config_path = dir.path().join("cache-config.toml");
let errors = cache_config::init(true, Some(&config_path), true, None);
assert!(errors.is_empty());
assert!(config_path.exists());
}