hotfix for issue with socktop agent not creating ssl certificate on first launch after upgrade of axum server version.

This commit is contained in:
2025-11-21 00:21:05 -08:00
parent c80f8cc363
commit 4b9d11dc9e
4 changed files with 10 additions and 6 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
use assert_cmd::cargo::cargo_bin;
use assert_cmd::prelude::*;
use std::fs;
use std::path::PathBuf;
use std::process::Command;
@@ -18,7 +16,7 @@ fn generates_self_signed_cert_and_key_in_xdg_path() {
let xdg = tmpdir.path().to_path_buf();
// Run the agent once with --enableSSL, short timeout so it exits quickly when killed
let mut cmd = Command::new(cargo_bin!("socktop_agent"));
let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("socktop_agent"));
// Bind to an ephemeral port (-p 0) to avoid conflicts/flakes
cmd.env("XDG_CONFIG_HOME", &xdg)
.arg("--enableSSL")