Merge pull request #1015 from zeroclaw-labs/test/gateway-idempotency-tests

test(gateway): add edge-case idempotency store tests
This commit is contained in:
Alex Gorevski 2026-02-19 16:16:28 -08:00 committed by GitHub
commit 1708243470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 2 deletions

View file

@ -3535,14 +3535,16 @@ async fn sync_directory(path: &Path) -> Result<()> {
}
#[cfg(not(unix))]
fn sync_directory(_path: &Path) -> Result<()> {
async fn sync_directory(_path: &Path) -> Result<()> {
Ok(())
}
#[cfg(test)]
mod tests {
use super::*;
use std::{fs::Permissions, os::unix::fs::PermissionsExt, path::PathBuf};
#[cfg(unix)]
use std::{fs::Permissions, os::unix::fs::PermissionsExt};
use std::path::PathBuf;
use tokio::sync::{Mutex, MutexGuard};
use tokio::test;
use tokio_stream::wrappers::ReadDirStream;