Compare commits

..

2 Commits

Author SHA1 Message Date
4ea83ee693 Bump version 2022-12-19 14:05:42 +01:00
47f58820d9 Catch server output 2022-12-19 14:05:16 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "grammalecte_client" name = "grammalecte_client"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
authors = ["Pierre Hubert <pierre.git@communiquons.org>"] authors = ["Pierre Hubert <pierre.git@communiquons.org>"]
description = "Grammalecte HTTP client" description = "Grammalecte HTTP client"

View File

@@ -2,7 +2,7 @@ use crate::server::utils::{get_free_port, wait_for_port};
use mktemp::Temp; use mktemp::Temp;
use std::error::Error; use std::error::Error;
use std::io::{Cursor, Read}; use std::io::{Cursor, Read};
use std::process::Child; use std::process::{Child, Stdio};
use zip::ZipArchive; use zip::ZipArchive;
pub struct EmbeddedServer { pub struct EmbeddedServer {
@@ -49,6 +49,7 @@ impl EmbeddedServer {
.arg(server_file) .arg(server_file)
.arg("-p") .arg("-p")
.arg(port.to_string()) .arg(port.to_string())
.stdout(Stdio::null())
.spawn()?; .spawn()?;
wait_for_port(port)?; wait_for_port(port)?;