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

Move solver competition storing into database crate #381

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Conversation

vkgnosis
Copy link
Contributor

Test Plan

refactored tests and new test

@vkgnosis vkgnosis requested a review from a team as a code owner July 21, 2022 13:33
Copy link
Contributor

@sunce86 sunce86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@@ -141,6 +141,7 @@ mod tests {
async fn postgres_save_and_get_quote_by_id() {
let mut db = PgConnection::connect("postgresql://").await.unwrap();
let mut db = db.begin().await.unwrap();
crate::clear_DANGER_(&mut db).await.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Shouldn't this function be called clear_db or similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the database crate so I didn't feel we needed an extra pre/postfix.

@vkgnosis vkgnosis enabled auto-merge (rebase) July 25, 2022 08:38
@vkgnosis vkgnosis merged commit c765727 into main Jul 25, 2022
@vkgnosis vkgnosis deleted the solv-comp-db branch July 25, 2022 08:43
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants