Base: codex-main originale (prima del fork aKode)
This commit is contained in:
17
codex-rs/message-board-mcp/tests/startup.rs
Normal file
17
codex-rs/message-board-mcp/tests/startup.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
//! The configured executable must not create a new Codex registry when pointed at the wrong directory.
|
||||
|
||||
#[test]
|
||||
fn requires_an_existing_registry_without_creating_databases() -> anyhow::Result<()> {
|
||||
let directory = tempfile::tempdir()?;
|
||||
let output = codex_utils_process::background_command(codex_utils_cargo_bin::cargo_bin(
|
||||
"codex-message-board-mcp",
|
||||
)?)
|
||||
.env("CODEX_MESSAGE_BOARD_TOKEN", "startup-test-only-token")
|
||||
.arg("--sqlite-home")
|
||||
.arg(directory.path())
|
||||
.args(["--listen", "127.0.0.1:0"])
|
||||
.output()?;
|
||||
assert!(!output.status.success());
|
||||
assert!(directory.path().read_dir()?.next().is_none());
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user