From edda1c6a74e1f3802d0bd126d3debac8fdc2f580 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Mon, 25 Dec 2023 10:40:08 +0800 Subject: [PATCH] fix test dependency (#81) --- .github/workflows/test.yml | 3 +++ Cargo.toml | 1 + flake.lock | 18 +++++++++--------- flake.nix | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7465483..63dc75d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,3 +19,6 @@ jobs: - name: Example test in features run: nix develop -c feature-test + + - name: Cargo test + run: nix develop -c cargo test --all-features diff --git a/Cargo.toml b/Cargo.toml index 5000724..d031c44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,3 +45,4 @@ executable = ["which"] [dev-dependencies] tokio = { version = "1.15.0", features = ["rt", "macros"] } serial_test = "2.0.0" +libtest-with = { version = "0.6.1-6", features = ["net", "resource", "user", "executable"] } diff --git a/flake.lock b/flake.lock index 6e389a6..3620356 100644 --- a/flake.lock +++ b/flake.lock @@ -55,11 +55,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1689068808, - "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", + "lastModified": 1701680307, + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", "owner": "numtide", "repo": "flake-utils", - "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", "type": "github" }, "original": { @@ -120,11 +120,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1691006197, - "narHash": "sha256-DbtxVWPt+ZP5W0Usg7jAyTomIM//c3Jtfa59Ht7AV8s=", + "lastModified": 1703255338, + "narHash": "sha256-Z6wfYJQKmDN9xciTwU3cOiOk+NElxdZwy/FiHctCzjU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "66aedfd010204949cb225cf749be08cb13ce1813", + "rev": "6df37dc6a77654682fe9f071c62b4242b5342e04", "type": "github" }, "original": { @@ -183,11 +183,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1691115502, - "narHash": "sha256-M4QWfCRrwBZ6HvYpJxB2bZCIs7ZCBEsF4a7mabRy3Zs=", + "lastModified": 1703384182, + "narHash": "sha256-g5K8bFBCIQ3x/j/MFTpkZo4It5SGWPwhBp/lASiy+pA=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "c6f763fe0ecbbcdbec404ff62f546485a03946e7", + "rev": "cb6395cb3c2f69ad028914c90bce833e51d339c9", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 1891532..276ffaa 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,7 @@ pkgs = import nixpkgs { inherit system overlays; }; - rust = pkgs.rust-bin.stable."1.71.1".default; + rust = pkgs.rust-bin.stable."1.74.1".default; dr = dependency-refresh.defaultPackage.${system}; publishScript = pkgs.writeShellScriptBin "crate-publish" ''