aboutsummaryrefslogtreecommitdiff
path: root/tests/imap_features.rs
blob: 3333b032150bcabb8cc8606e2c4455c458e64da1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::process::Command;
use std::{thread, time};

static ONE_SEC: time::Duration = time::Duration::from_secs(1);

fn main() {
    let mut daemon = Command::new(env!("CARGO_BIN_EXE_aerogramme"))
        .arg("--dev")
        .arg("provider")
        .arg("daemon")
        .spawn()
        .expect("daemon should be started");

    thread::sleep(ONE_SEC);

    daemon.kill().expect("daemon should be killed");
}