[GH-ISSUE #1668] Sporadic test failure: shuffle_vec::test::test_shuffle_with_first #757

Open
opened 2026-02-27 19:32:19 +03:00 by kerem · 1 comment
Owner

Originally created by @xtqqczze on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1668

failures:

---- shuffle_vec::test::test_shuffle_with_first stdout ----

thread 'shuffle_vec::test::test_shuffle_with_first' (9276) panicked at connect/src/shuffle_vec.rs:180:9:
assertion `left == right` failed: only the switched positions should be different
  left: 0
 right: 2
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/panicking.rs:698:5
   1: core::panicking::panic_fmt
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:80:14
   2: core::panicking::assert_failed_inner
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:439:23
   3: core::panicking::assert_failed
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:399:5
   4: librespot_connect::shuffle_vec::test::test_shuffle_with_first
             at ./src/shuffle_vec.rs:180:9
   5: librespot_connect::shuffle_vec::test::test_shuffle_with_first::{{closure}}
             at ./src/shuffle_vec.rs:150:33
   6: core::ops::function::FnOnce::call_once
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Originally posted by @xtqqczze in https://github.com/librespot-org/librespot/issues/1667#issuecomment-3690627487

Originally created by @xtqqczze on GitHub (Dec 25, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1668 ```log failures: ---- shuffle_vec::test::test_shuffle_with_first stdout ---- thread 'shuffle_vec::test::test_shuffle_with_first' (9276) panicked at connect/src/shuffle_vec.rs:180:9: assertion `left == right` failed: only the switched positions should be different left: 0 right: 2 stack backtrace: 0: __rustc::rust_begin_unwind at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/panicking.rs:698:5 1: core::panicking::panic_fmt at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:80:14 2: core::panicking::assert_failed_inner at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:439:23 3: core::panicking::assert_failed at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:399:5 4: librespot_connect::shuffle_vec::test::test_shuffle_with_first at ./src/shuffle_vec.rs:180:9 5: librespot_connect::shuffle_vec::test::test_shuffle_with_first::{{closure}} at ./src/shuffle_vec.rs:150:33 6: core::ops::function::FnOnce::call_once at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5 7: core::ops::function::FnOnce::call_once at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5 note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. ``` _Originally posted by @xtqqczze in https://github.com/librespot-org/librespot/issues/1667#issuecomment-3690627487_
Author
Owner

@photovoltex commented on GitHub (Dec 25, 2025):

Oh, the test probably did fail, because the shuffle seed achieved the same shuffled result, as shuffling with the first value defined by a condition... that's a bit annoying...

<!-- gh-comment-id:3691616031 --> @photovoltex commented on GitHub (Dec 25, 2025): Oh, the test probably did fail, because the shuffle seed achieved the same shuffled result, as shuffling with the first value defined by a condition... that's a bit annoying...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#757
No description provided.