Skip to content

Commit 0172c3b

Browse files
committed
up
1 parent 8364381 commit 0172c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clash-lib/tests/smoke_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async fn smoke_test() {
6565
"Curl command failed with output: {}",
6666
String::from_utf8_lossy(&output.stderr)
6767
);
68-
assert_eq!(mock.hits(), 1, "Mock server was not hit exactly once");
68+
assert_eq!(mock.calls(), 1, "Mock server was not hit exactly once");
6969
assert_eq!(
7070
String::from_utf8_lossy(&output.stdout),
7171
"Mock response for testing",
@@ -91,7 +91,7 @@ async fn smoke_test() {
9191
String::from_utf8_lossy(&output.stderr)
9292
);
9393

94-
assert_eq!(mock.hits(), 2, "Mock server was not hit exactly twice");
94+
assert_eq!(mock.calls(), 2, "Mock server was not hit exactly twice");
9595
assert_eq!(
9696
String::from_utf8_lossy(&output.stdout),
9797
"Mock response for testing",

0 commit comments

Comments
 (0)