diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 17:40:15 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 17:40:15 +0100 |
| commit | 4344d4765fffcea0e3055ec0389239a2d9a12ae3 (patch) | |
| tree | fa8e6db7cd7045f53af26590b639b4c856bcd1f0 | |
| parent | chore(treewide): Format (diff) | |
| download | yt-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.
| -rw-r--r-- | crates/libmpv2/src/tests.rs | 4 |
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(()) |
