Skip to content

Commit

Permalink
fix: resolve container conflict on test
Browse files Browse the repository at this point in the history
naming conflict introduced with use of testcontainers

fixes #452

Signed-off-by: Douglas McConnachie <[email protected]>
  • Loading branch information
dougal83 authored and raymondfeng committed Feb 24, 2020
1 parent 78e4e52 commit 364a226
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {GenericContainer, StartedTestContainer} from 'testcontainers';

async function startRedis() {
const container = await new GenericContainer('redis')
.withName('redis_lb4_shopping')
.withName('redis_lb4_shopping_test')
.withExposedPorts(6379)
.start();
process.env.SHOPPING_APP_REDIS_MASTER_SERVICE_HOST = container.getContainerIpAddress();
Expand All @@ -19,7 +19,7 @@ async function startRedis() {

async function startMongoDB() {
const container = await new GenericContainer('mongo')
.withName('mongodb_lb4_shopping')
.withName('mongodb_lb4_shopping_test')
.withExposedPorts(27017)
.start();
process.env.SHOPPING_APP_MONGODB_SERVICE_HOST = container.getContainerIpAddress();
Expand Down

0 comments on commit 364a226

Please sign in to comment.