Skip to content

Commit 26c4edf

Browse files
committed
worker/jobs/downloads/update_metadata: Remove unnecessary versions_published_by::insert() call
We don't need this in the database for the test cases in this module.
1 parent 6b9b884 commit 26c4edf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/worker/jobs/downloads/update_metadata.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ mod tests {
107107
use super::*;
108108
use crate::models::{Crate, NewCrate, NewUser, NewVersion, User, Version};
109109
use crate::schema::{crate_downloads, crates, versions};
110-
use crates_io_database::models::versions_published_by;
111110
use crates_io_test_db::TestDatabase;
112111
use diesel::sql_types::Timestamptz;
113112
use diesel_async::AsyncConnection;
@@ -139,10 +138,6 @@ mod tests {
139138

140139
let version = version.save(conn).await.unwrap();
141140

142-
versions_published_by::insert(version.id, "[email protected]", conn)
143-
.await
144-
.unwrap();
145-
146141
(krate, version)
147142
}
148143

0 commit comments

Comments
 (0)