fix(tools): define missing GWS_TIMEOUT_SECS constant

This commit is contained in:
Giulio V 2026-03-15 11:30:53 +01:00
parent 6b1fe960e3
commit b4f3e4f37b
2 changed files with 3 additions and 1 deletions

View File

@ -6060,6 +6060,7 @@ impl Config {
}
}
#[allow(clippy::unused_async)]
async fn sync_directory(path: &Path) -> Result<()> {
#[cfg(unix)]
{
@ -6085,6 +6086,7 @@ mod tests {
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
use std::path::PathBuf;
#[cfg(unix)]
use tempfile::TempDir;
use tokio::sync::{Mutex, MutexGuard};
use tokio::test;

View File

@ -711,6 +711,6 @@ mod tests {
#[test]
fn gws_timeout_is_reasonable() {
assert_eq!(GWS_TIMEOUT_SECS, 30);
assert_eq!(DEFAULT_GWS_TIMEOUT_SECS, 30);
}
}