Skip to content

Commit 7d39ce0

Browse files
committed
Switch to TestApp::init where possible
1 parent 2827d47 commit 7d39ce0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/krate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ fn new_wrong_token() {
540540
#[test]
541541
fn invalid_names() {
542542
fn bad_name(name: &str, error_message: &str) {
543-
let (_, _, _, token) = TestApp::with_proxy().with_token();
543+
let (_, _, _, token) = TestApp::init().with_token();
544544
let crate_to_publish = PublishBuilder::new(name).version("1.0.0");
545545
let json = token.publish(crate_to_publish).bad_with_status(200);
546546

@@ -680,7 +680,7 @@ fn new_krate_non_canon_crate_name_dependencies() {
680680

681681
#[test]
682682
fn new_krate_with_wildcard_dependency() {
683-
let (app, _, user, token) = TestApp::with_proxy().with_token();
683+
let (app, _, user, token) = TestApp::init().with_token();
684684

685685
app.db(|conn| {
686686
// Insert a crate directly into the database so that new_wild can depend on it
@@ -825,7 +825,7 @@ fn new_krate_gzip_bomb() {
825825

826826
#[test]
827827
fn new_krate_duplicate_version() {
828-
let (app, _, user, token) = TestApp::with_proxy().with_token();
828+
let (app, _, user, token) = TestApp::init().with_token();
829829

830830
app.db(|conn| {
831831
// Insert a crate directly into the database and then we'll try to publish the same version

0 commit comments

Comments
 (0)