Skip to content

Commit

Permalink
Extract simulator url constant
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Sep 1, 2024
1 parent d77b96d commit 84e6db6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,11 @@ mod test_utils {

impl PassthroughTestEnv {
async fn try_new() -> eyre::Result<Self> {
const SIMULATOR_URL: &str = "http://127.0.0.1:32323";

let simulators =
Command::new(r"C:\Program Files\ASCOM\OmniSimulator\ascom.alpaca.simulators.exe")
.arg(format!("--urls={SIMULATOR_URL}"))
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
Expand All @@ -439,7 +442,7 @@ mod test_utils {

server
.devices
.extend(Client::new("http://127.0.0.1:32323")?.get_devices().await?);
.extend(Client::new(SIMULATOR_URL)?.get_devices().await?);

server
.listen_addr
Expand Down

0 comments on commit 84e6db6

Please sign in to comment.