Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Dec 15, 2024
1 parent 395bfbe commit fedcc20
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 11 deletions.
112 changes: 101 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pinger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ dns-lookup = "2.0.0"

[dev-dependencies]
os_info = "3.9.0"
ntest = "0.9.3"
2 changes: 2 additions & 0 deletions pinger/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ mod tests {
#[cfg(windows)]
use crate::windows::WindowsPinger;
use crate::{PingOptions, PingResult, Pinger};
use ntest::timeout;
use std::time::Duration;

#[test]
#[timeout(60)]
fn test_integration() {
run_integration_test(PingOptions::new(
"tomforb.es",
Expand Down

0 comments on commit fedcc20

Please sign in to comment.