Compare commits

..

3 Commits

Author SHA1 Message Date
Gwen Lg
1ef344ecdd add err output when server failed to start 2024-06-14 11:56:56 +02:00
Gwen Lg
c8efde0c58 check if server correctly start
in same time than the port was opened.
Rename function into `wait_for_server` according.
2024-06-14 11:56:56 +02:00
Gwen Lg
252bc0ae32 improve error management with thiserror use
- add thiserror dependency
- use distinct Error enum in lib and server
2024-06-14 11:48:55 +02:00

View File

@ -3,8 +3,7 @@ use mktemp::Temp;
use std::io::{self, Cursor, Read}; use std::io::{self, Cursor, Read};
use std::process::{Child, ExitStatus, Stdio}; use std::process::{Child, ExitStatus, Stdio};
use thiserror::Error; use thiserror::Error;
use zip::result::ZipError; use zip::{result::ZipError, ZipArchive};
use zip::ZipArchive;
#[derive(Debug, Error)] #[derive(Debug, Error)]
pub enum Error { pub enum Error {
@ -123,7 +122,7 @@ impl Drop for EmbeddedServer {
mod utils { mod utils {
use super::Error; use super::Error;
use std::fmt::Write; use std::fmt::Write;
use std::io::{BufRead, BufReader, ErrorKind}; use std::io::{BufRead, BufReader};
use std::process::Child; use std::process::Child;
use std::time::Duration; use std::time::Duration;