Skip to content

Commit

Permalink
feat(jstzd): test
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Nov 26, 2024
1 parent 5fbe97d commit 481f57c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
slow-timeout = { period = "60s", terminate-after = 1 }
5 changes: 5 additions & 0 deletions crates/jstzd/tests/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion nix/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 481f57c

Please sign in to comment.