Skip to content

Commit

Permalink
[rust] Include assertion about stats error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Nov 19, 2023
1 parent d6ef311 commit a28229d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ pub async fn send_stats_to_plausible(http_client: &Client, props: Props, log: &L
.body(body);

if let Err(err) = request.send().await {
log.warn(format!("Error sending stats to Plausible: {}", err));
log.warn(format!("Error sending stats to {}: {}", PLAUSIBLE_URL, err));
}
}
3 changes: 2 additions & 1 deletion rust/tests/browser_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn browser_version_test(
"--debug",
"--avoid-browser-download",
"--language-binding",
"java"
"java",
])
.assert()
.success()
Expand All @@ -62,6 +62,7 @@ fn browser_version_test(
if !browser_version.is_empty() && output.contains("cache") {
assert!(output.contains(&driver_version));
}
assert!(!output.contains("Error sending stats"));
}

#[rstest]
Expand Down

0 comments on commit a28229d

Please sign in to comment.