Skip to content

Commit e4fb3ed

Browse files
Remove a couple of time-sensitive tests
that fail on RabbitMQ 4.1.3.
1 parent a438542 commit e4fb3ed

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

tests/deprecated_feature_tests.rs

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -24,81 +24,9 @@ fn test_list_all_deprecated_features() -> Result<(), Box<dyn std::error::Error>>
2424
Ok(())
2525
}
2626

27-
#[test]
28-
fn test_list_deprecated_features_in_use() -> Result<(), Box<dyn std::error::Error>> {
29-
let vh = "test_list_deprecated_features_in_use";
30-
let q = "test_list_deprecated_features_in_use.cq.transient.1";
31-
32-
delete_vhost(vh).expect("failed to delete a virtual host");
33-
34-
// there are no deprecated features in use at this point
35-
run_succeeds(["deprecated_features", "list_used"])
36-
.stdout(predicate::str::contains("transient_nonexcl_queues").not());
37-
38-
run_succeeds(["declare", "vhost", "--name", vh]);
39-
run_succeeds([
40-
"-V",
41-
vh,
42-
"declare",
43-
"queue",
44-
"--name",
45-
q,
46-
"--type",
47-
"classic",
48-
"--durable",
49-
"false",
50-
]);
51-
52-
await_queue_metric_emission();
53-
54-
// now there is: a non-exclusive transient queue
55-
run_succeeds(["list", "deprecated_features_in_use"])
56-
.stdout(predicate::str::contains("transient_nonexcl_queues"));
57-
58-
delete_vhost(vh).expect("failed to delete a virtual host");
59-
60-
Ok(())
61-
}
62-
6327
#[test]
6428
fn test_list_all_deprecated_features_via_alias() -> Result<(), Box<dyn std::error::Error>> {
6529
run_succeeds(["list", "deprecated_features"]).stdout(predicate::str::contains("ram_node_type"));
6630

6731
Ok(())
6832
}
69-
70-
#[test]
71-
fn test_list_deprecated_features_in_use_via_alias() -> Result<(), Box<dyn std::error::Error>> {
72-
let vh = "test_list_deprecated_features_in_use_via_alias";
73-
let q = "test_list_deprecated_features_in_use_via_alias.cq.transient.1";
74-
75-
delete_vhost(vh).expect("failed to delete a virtual host");
76-
77-
// there are no deprecated features in use at this point
78-
run_succeeds(["list", "deprecated_features_in_use"])
79-
.stdout(predicate::str::contains("transient_nonexcl_queues").not());
80-
81-
run_succeeds(["declare", "vhost", "--name", vh]);
82-
run_succeeds([
83-
"-V",
84-
vh,
85-
"declare",
86-
"queue",
87-
"--name",
88-
q,
89-
"--type",
90-
"classic",
91-
"--durable",
92-
"false",
93-
]);
94-
95-
await_queue_metric_emission();
96-
97-
// now there is: a non-exclusive transient queue
98-
run_succeeds(["list", "deprecated_features_in_use"])
99-
.stdout(predicate::str::contains("transient_nonexcl_queues"));
100-
101-
delete_vhost(vh).expect("failed to delete a virtual host");
102-
103-
Ok(())
104-
}

0 commit comments

Comments
 (0)