Skip to content

Commit 9f5bac1

Browse files
Fix a Shovel test
1. There is no need to test Shovel deletion in this specific test 2. When a Shovel is starting, it cannot be deleted with several RabbitMQ versions due to [A] A. rabbitmq/rabbitmq-server#11324
1 parent f103983 commit 9f5bac1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

rabbithole_test.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3842,8 +3842,8 @@ var _ = Describe("RabbitMQ HTTP API client", func() {
38423842
vh := "rabbit/hole"
38433843
sn := "temporary"
38443844

3845-
ssu := URISet([]string{"amqp://127.0.0.1/%2f"})
3846-
sdu := URISet([]string{"amqp://127.0.0.1/%2f"})
3845+
ssu := URISet([]string{"amqp://localhost/%2f"})
3846+
sdu := URISet([]string{"amqp://localhost/%2f"})
38473847

38483848
shovelDefinition := ShovelDefinition{
38493849
SourceURI: ssu,
@@ -3870,13 +3870,6 @@ var _ = Describe("RabbitMQ HTTP API client", func() {
38703870

38713871
_, err = rmqc.DeleteShovel(vh, sn)
38723872
Ω(err).Should(BeNil())
3873-
3874-
Eventually(func(g Gomega) []ShovelStatus {
3875-
xs, err := rmqc.ListShovelStatus(vh)
3876-
Ω(err).Should(BeNil())
3877-
3878-
return xs
3879-
}).Should(BeEmpty())
38803873
})
38813874
})
38823875

0 commit comments

Comments
 (0)