Skip to content

Commit

Permalink
Merge pull request #617 from prisma/migration-engine/fix-warning
Browse files Browse the repository at this point in the history
Fix unused value warning in test
  • Loading branch information
tomhoule committed Mar 26, 2020
2 parents 3870076 + 74e041c commit 8814060
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -11,11 +11,13 @@ async fn last_should_return_none_if_there_is_no_migration(api: &TestApi) {
}

#[test_each_connector]
async fn last_must_return_none_if_there_is_no_successful_migration(api: &TestApi) {
async fn last_must_return_none_if_there_is_no_successful_migration(api: &TestApi) -> TestResult {
let persistence = api.migration_persistence();
persistence.create(Migration::new("my_migration".to_string()));
let loaded = persistence.last().await.unwrap();
persistence.create(Migration::new("my_migration".to_string())).await?;
let loaded = persistence.last().await?;
assert_eq!(loaded, None);

Ok(())
}

#[test_each_connector]
Expand Down

0 comments on commit 8814060

Please sign in to comment.