Handle idle time between fetch results #212
@ -336,9 +336,9 @@ mod tests {
|
|||||||
seq: &mut Sequence,
|
seq: &mut Sequence,
|
||||||
arid: &Mbid,
|
arid: &Mbid,
|
||||||
album: &AlbumMeta,
|
album: &AlbumMeta,
|
||||||
matches: &Vec<Match<AlbumMeta>>,
|
matches: &[Match<AlbumMeta>],
|
||||||
) {
|
) {
|
||||||
let result = Ok(matches.clone());
|
let result = Ok(matches.to_owned());
|
||||||
api.expect_search_release_group()
|
api.expect_search_release_group()
|
||||||
.with(predicate::eq(arid.clone()), predicate::eq(album.clone()))
|
.with(predicate::eq(arid.clone()), predicate::eq(album.clone()))
|
||||||
.times(1)
|
.times(1)
|
||||||
@ -401,9 +401,9 @@ mod tests {
|
|||||||
api: &mut MockIMusicBrainz,
|
api: &mut MockIMusicBrainz,
|
||||||
seq: &mut Sequence,
|
seq: &mut Sequence,
|
||||||
artist: &ArtistMeta,
|
artist: &ArtistMeta,
|
||||||
matches: &Vec<Match<ArtistMeta>>,
|
matches: &[Match<ArtistMeta>],
|
||||||
) {
|
) {
|
||||||
let result = Ok(matches.clone());
|
let result = Ok(matches.to_owned());
|
||||||
api.expect_search_artist()
|
api.expect_search_artist()
|
||||||
.with(predicate::eq(artist.clone()))
|
.with(predicate::eq(artist.clone()))
|
||||||
.times(1)
|
.times(1)
|
||||||
|
@ -57,10 +57,7 @@ impl Minibuffer<'_> {
|
|||||||
columns,
|
columns,
|
||||||
},
|
},
|
||||||
AppState::Fetch(()) => Minibuffer {
|
AppState::Fetch(()) => Minibuffer {
|
||||||
paragraphs: vec![
|
paragraphs: vec![Paragraph::new("fetching..."), Paragraph::new("q: abort")],
|
||||||
Paragraph::new(format!("fetching...")),
|
|
||||||
Paragraph::new(format!("q: abort")),
|
|
||||||
],
|
|
||||||
columns: 2,
|
columns: 2,
|
||||||
},
|
},
|
||||||
AppState::Matches(public) => Minibuffer {
|
AppState::Matches(public) => Minibuffer {
|
||||||
|
Loading…
Reference in New Issue
Block a user