Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused value warning in test #617

Merged
merged 1 commit into from Mar 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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