This repository has been archived on 2026-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
molotov/crates/molotov-bootstrap/tests/launcher_test.rs

22 lines
685 B
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
use molotov_bootstrap::launcher::{LaunchOptions, Launcher};
use molotov_bootstrap::region::ServerRegion;
use tempfile::tempdir;
#[test]
fn test_launcher_prepare_flow() {
let temp = tempdir().unwrap();
let root = temp.path().to_path_buf();
let launcher = Launcher::new(root);
let options = LaunchOptions {
place_id: Some(1818),
safe_mode: false,
region: ServerRegion::Europe,
instance_id: "default".to_string(),
};
let plan = launcher.prepare_launch(options).expect("Should prepare launch plan");
assert!(plan.fflags_path.exists());
assert_eq!(plan.place_id, Some(1818));
}