Skip to content

Commit

Permalink
use right pattern for rabbit custom config
Browse files Browse the repository at this point in the history
see #1690
  • Loading branch information
twillouer committed Jul 30, 2019
1 parent f7e0eed commit 24e1391
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -348,12 +348,12 @@ public RabbitMQContainer withExchange(String name, String type, boolean autoDele
/**
* Overwrites the default RabbitMQ configuration file with the supplied one
*
* @param rabbitMQConf The rabbitmq.conf file to use
* @param rabbitMQConf The rabbitmq.config file to use
* @return This container.
*/
public RabbitMQContainer withRabbitMQConfig(MountableFile rabbitMQConf) {
withEnv("RABBITMQ_CONFIG_FILE", "/etc/rabbitmq/rabbitmq-custom.conf");
return withCopyFileToContainer(rabbitMQConf, "/etc/rabbitmq/rabbitmq-custom.conf");
withEnv("RABBITMQ_CONFIG_FILE", "/etc/rabbitmq/rabbitmq-custom.config");
return withCopyFileToContainer(rabbitMQConf, "/etc/rabbitmq/rabbitmq-custom.config");
}

@NotNull
Expand Down

0 comments on commit 24e1391

Please sign in to comment.