Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/dim-app-server/src/agents/sessions/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ async fn exists_answers_loaded_unloaded_closed_and_deleted() {
builder,
crate::ServerConfig {
database_path: Some(directory.join("dimcode.sqlite")),
// This test does not exercise the startup deadline; a whole-suite
// run can make assembly slower than the product default.
startup_timeout: Duration::from_secs(30),
..Default::default()
},
)
Expand Down
6 changes: 6 additions & 0 deletions crates/dim-app-server/tests/transport_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ async fn launch_inner(
install_collaboration: impl FnOnce(&mut AgentBuilder),
extra: impl FnOnce(&mut AgentBuilder),
) -> dim_app_server::Result<RunningServer> {
if config.startup_timeout == ServerConfig::default().startup_timeout {
// These flows do not test the startup deadline; the deadline has its
// own cases with explicit short bounds. A whole-suite run can make
// assembly slower than the product's 10 s default.
config.startup_timeout = Duration::from_secs(30);
}
config.unix_path = Some(std::path::PathBuf::from("/tmp").join(format!(
"dim-server-test-{}/server.sock",
uuid::Uuid::new_v4()
Expand Down