Skip to content

Commit

Permalink
adjust test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thebino committed Oct 26, 2023
1 parent 0020f19 commit b747b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/media/src/api/routes/post_media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ mod tests {

use crate::api::router::MediaApi;
use axum::http::header::CONTENT_TYPE;
use hyper::header::CONNECTION;
use std::io::Write;
use std::path::PathBuf;
use testdir::testdir;
Expand Down
4 changes: 2 additions & 2 deletions crates/media/src/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ mod tests {
// given
let user_id = "605EE8BE-BAF2-4499-B8D4-BA8C74E8B242";
sqlx::query("INSERT INTO users (uuid, email, password, lastname, firstname) VALUES ($1, $2, $3, $4, $5)")
.bind(user_id.clone())
.bind(user_id)
.bind("info@photos.network")
.bind("unsecure")
.bind("Stuermer")
Expand All @@ -188,7 +188,7 @@ mod tests {
sqlx::query("INSERT INTO media (uuid, name, owner) VALUES ($1, $2, $3)")
.bind("6A92460C-53FB-4B42-AC1B-E6760A34E169")
.bind("DSC_1234")
.bind(user_id.clone())
.bind(user_id)
.execute(&pool)
.await?;

Expand Down

0 comments on commit b747b78

Please sign in to comment.