Skip to content

Commit 5276ef3

Browse files
loganjLarry
andcommitted
test(acp): gate frame test helper to its unix-only callers
wait_for in the acp_frame_writer test module has no callers on non-unix targets because both real-pipe tests that use it are #[cfg(unix)], so Windows clippy (-D warnings) flagged the helper as dead code in the lib test target. Add the matching #[cfg(unix)] so the helper compiles only where it is called. No production code, test bodies, or assertions change. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson <[email protected]>
1 parent 45e00ec commit 5276ef3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎crates/buzz-acp/src/acp_frame_writer.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ mod tests {
9595
reader.read_to_end(&mut bytes).await.unwrap();
9696
assert_eq!(bytes, b"{}\n{\"cancel\":true}\n");
9797
}
98+
#[cfg(unix)]
9899
async fn wait_for(path: &std::path::Path) {
99100
tokio::time::timeout(Duration::from_secs(5), async {
100101
while !path.exists() {

0 commit comments

Comments
 (0)