13 lines
371 B
Rust
13 lines
371 B
Rust
use tempfile;
|
|
use wasmtime_environ::cache_init;
|
|
|
|
#[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_init(true, Some(&config_path), true, None);
|
|
assert!(errors.is_empty());
|
|
assert!(config_path.exists());
|
|
}
|