From 481f57ccb40d6ed85d9384b32951e186adc6049b Mon Sep 17 00:00:00 2001 From: Huan-Cheng Chang Date: Tue, 26 Nov 2024 16:46:22 +0000 Subject: [PATCH] feat(jstzd): test --- .config/nextest.toml | 1 + crates/jstzd/tests/dummy.rs | 5 +++++ nix/crates.nix | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .config/nextest.toml diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 000000000..f451d1952 --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1 @@ +slow-timeout = { period = "60s", terminate-after = 1 } diff --git a/crates/jstzd/tests/dummy.rs b/crates/jstzd/tests/dummy.rs index d08a980df..e01e6087a 100644 --- a/crates/jstzd/tests/dummy.rs +++ b/crates/jstzd/tests/dummy.rs @@ -15,3 +15,8 @@ async fn test_octez_client() { .unwrap(); println!("octez-client --version: {:?}", output); } + +#[test] +fn timeout() { + std::thread::sleep(std::time::Duration::from_secs(120)); +} diff --git a/nix/crates.nix b/nix/crates.nix index 9d1fe9eae..e6ffa0aa3 100644 --- a/nix/crates.nix +++ b/nix/crates.nix @@ -15,7 +15,7 @@ src = let # Include all Rust files / cargo related files # Include all files in the `contracts` and `crates` directories - regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$"]; + regexes = [".*\.toml$" ".*\.rs$" "^\.cargo.*$" "^Cargo.lock$" "^crates.*$" "^contracts.*$" "\.config.*$"]; in lib.sourceByRegex (lib.cleanSource ../.) regexes;