Skip to content

Commit

Permalink
Fix another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwn committed Mar 26, 2024
1 parent 8c03faf commit da8da6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/songs/songs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tracks:
file: ../2Channel44.1k.wav
file_channel: 1
channel: 1
- name: track 1
- name: track 2
file: ../2Channel44.1k.wav
file_channel: 2
channel: 2
Expand Down
5 changes: 1 addition & 4 deletions src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ impl Player {
song = self.get_playlist().current().name,
"Stopping playback."
);

// Cancel the playback.
let join = join.as_mut().unwrap();
join.cancel.cancel();
Expand Down Expand Up @@ -429,10 +430,6 @@ mod test {
assert_eq!(player.get_playlist().current().name, "Song 3");

player.play().await?;
println!("Play Song 3.");
eventually(|| device.is_playing(), "Song never started playing");

assert_eq!(true, player.wait_for_current_song().await?);

// Playlist should have moved to next song.
eventually(
Expand Down

0 comments on commit da8da6a

Please sign in to comment.