From 4344d4765fffcea0e3055ec0389239a2d9a12ae3 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Sat, 28 Nov 2026 17:40:15 +0100 Subject: test(libmpv2/src/tests.rs): Remove nix's /build prefix In the sandbox the returned path starts with `/build/..`, so we explicitly only take what we need to perform the check. --- crates/libmpv2/src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/libmpv2/src/tests.rs b/crates/libmpv2/src/tests.rs index 763982b..bcbc8f1 100644 --- a/crates/libmpv2/src/tests.rs +++ b/crates/libmpv2/src/tests.rs @@ -234,8 +234,8 @@ fn node_array() -> Result<()> { let filename = track.get("filename").unwrap(); assert_eq!( - filename, - &MpvNode::String("test-data/speech_12kbps_mb.wav".to_string()) + filename.str().unwrap().chars().rev().take(30).collect::(), + "test-data/speech_12kbps_mb.wav".chars().rev().collect::() ); Ok(()) -- cgit v1.3.1