aboutsummaryrefslogtreecommitdiffstats
path: root/crates/libmpv2/src/tests.rs
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-28 17:40:15 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-28 17:40:15 +0100
commit4344d4765fffcea0e3055ec0389239a2d9a12ae3 (patch)
treefa8e6db7cd7045f53af26590b639b4c856bcd1f0 /crates/libmpv2/src/tests.rs
parentchore(treewide): Format (diff)
downloadyt-4344d4765fffcea0e3055ec0389239a2d9a12ae3.zip
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.
Diffstat (limited to 'crates/libmpv2/src/tests.rs')
-rw-r--r--crates/libmpv2/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
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::<String>(),
+ "test-data/speech_12kbps_mb.wav".chars().rev().collect::<String>()
);
Ok(())