Skip to content

Commit bffd16a

Browse files
committed
Make all test crates have unique names to prevent test deadlocks
1 parent c6de914 commit bffd16a

20 files changed

+207
-207
lines changed

src/tests/all.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ fn new_req_with_categories(app: Arc<App>, krate: Crate, version: &str,
290290
return req;
291291
}
292292

293-
fn new_req_body_foo_version_2() -> Vec<u8> {
294-
new_req_body(::krate("foo"), "2.0.0", Vec::new(), Vec::new(), Vec::new())
293+
fn new_req_body_version_2(krate: Crate) -> Vec<u8> {
294+
new_req_body(krate, "2.0.0", Vec::new(), Vec::new(), Vec::new())
295295
}
296296

297297
fn new_req_body(krate: Crate, version: &str, deps: Vec<u::CrateDependency>,

src/tests/http-data/krate_good_categories

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
1+
===REQUEST 349
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_good_cat/foo_good_cat-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Authorization: AWS AKIAJF3GEK7N44BACDZA:GDxGb6r3SIqo9wXuzHrgMNWekwk=

src/tests/http-data/krate_ignored_categories

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
1+
===REQUEST 355
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_ignored_cat/foo_ignored_cat-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Authorization: AWS AKIAJF3GEK7N44BACDZA:GDxGb6r3SIqo9wXuzHrgMNWekwk=

src/tests/http-data/krate_new_crate_owner

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
1+
===REQUEST 344
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_owner/foo_owner-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Host: alexcrichton-test.s3.amazonaws.com
@@ -19,8 +19,8 @@ etag: "d41d8cd98f00b204e9800998ecf8427e"
1919
date: Sun, 28 Jun 2015 21:07:51 GMT
2020

2121

22-
===REQUEST 331
23-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-2.0.0.crate HTTP/1.1
22+
===REQUEST 344
23+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_owner/foo_owner-2.0.0.crate HTTP/1.1
2424
Accept: */*
2525
Proxy-Connection: Keep-Alive
2626
Authorization: AWS AKIAJF3GEK7N44BACDZA:wz9J18+QxEhMIqIDnzwP6fGGeGY=

src/tests/http-data/krate_new_krate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
1+
===REQUEST 339
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_new/foo_new-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Authorization: AWS AKIAJF3GEK7N44BACDZA:GDxGb6r3SIqo9wXuzHrgMNWekwk=

src/tests/http-data/krate_new_krate_git_upload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/fgt/fgt-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Host: alexcrichton-test.s3.amazonaws.com

src/tests/http-data/krate_new_krate_git_upload_appends

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/FOO/FOO-1.0.0.crate HTTP/1.1
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/FPP/FPP-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Authorization: AWS AKIAJF3GEK7N44BACDZA:mLugvy/BSBS8JgZ6pK7tURu3OTU=

src/tests/http-data/krate_new_krate_git_upload_with_conflicts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.0.0.crate HTTP/1.1
1+
===REQUEST 351
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_conflicts/foo_conflicts-1.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Authorization: AWS AKIAJF3GEK7N44BACDZA:GDxGb6r3SIqo9wXuzHrgMNWekwk=

src/tests/http-data/krate_new_krate_too_big_but_whitelisted

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 2334
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-1.1.0.crate HTTP/1.1
1+
===REQUEST 2354
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_whitelist/foo_whitelist-1.1.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Content-Type: application/x-tar

src/tests/http-data/krate_new_krate_twice

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
===REQUEST 331
2-
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo/foo-2.0.0.crate HTTP/1.1
1+
===REQUEST 343
2+
PUT http://alexcrichton-test.s3.amazonaws.com/crates/foo_twice/foo_twice-2.0.0.crate HTTP/1.1
33
Accept: */*
44
Proxy-Connection: Keep-Alive
55
Content-Length: 0

0 commit comments

Comments
 (0)