Skip to content

Commit

Permalink
[storage] make all tests async fn
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 25, 2024
1 parent e831cf4 commit f6f2456
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ async fn insert_album() {
assert!(searcher.search_album("Eternal").is_ok());
}

#[test]
fn insert_artist() {
#[tokio::test]
async fn insert_artist() {
env::set_var("MUSIC_PLAYER_APPLICATION_DIRECTORY", "/tmp");
let searcher = Searcher::new();
let artist = Artist {
Expand All @@ -47,8 +47,8 @@ fn insert_artist() {
assert!(searcher.insert_artist(artist).is_ok());
}

#[test]
fn insert_track() {
#[tokio::test]
async fn insert_track() {
env::set_var("MUSIC_PLAYER_APPLICATION_DIRECTORY", "/tmp");
let searcher = Searcher::new();
let song = Song {
Expand Down

0 comments on commit f6f2456

Please sign in to comment.