func TestConnectToRabbitMQ(t *testing.T) {
	c, err := ConnectToRabbitMQ(15, time.Millisecond*500, func(url string) bool {
		amqp, err := amqp.Dial(fmt.Sprintf("amqp://%v", url))
		if err != nil {
			return false
		}
		defer amqp.Close()
		return true
	})
	assert.Nil(t, err)
	defer c.KillRemove()
}
func TestCustomContainer(t *testing.T) {
	c1, ip, port, err := SetupCustomContainer("rabbitmq", 5672, 10*time.Second)
	assert.Nil(t, err)
	defer c1.KillRemove()

	err = ConnectToCustomContainer(fmt.Sprintf("%v:%v", ip, port), 15, time.Millisecond*500, func(url string) bool {
		amqp, err := amqp.Dial(fmt.Sprintf("amqp://%v", url))
		if err != nil {
			return false
		}
		defer amqp.Close()
		return true
	})
	assert.Nil(t, err)
}