Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #70 from peleccom/fix/tests-connection-refused
Browse files Browse the repository at this point in the history
Fix tests app name
  • Loading branch information
toolmantim authored Apr 26, 2019
2 parents 86a1b56 + bb8ad90 commit 72cdb8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/docker-compose.integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:
volumes:
- "./integration-tests:/integration-tests"
- "./screenshots:/screenshots"
command: "wait-for-it.sh app:80 -- mocha --recursive /integration-tests"
command: "wait-for-it.sh web:80 -- mocha --recursive /integration-tests"
links:
- app
app:
- web
web:
image: tutum/hello-world
expose:
- "80"
2 changes: 1 addition & 1 deletion example/integration-tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ after(async() => {

describe('App', () => {
it('renders', async() => {
const response = await page.goto('http://app/')
const response = await page.goto('http://web/')
assert(response.ok())
await page.screenshot({ path: `/screenshots/app.png` })
})
Expand Down

0 comments on commit 72cdb8d

Please sign in to comment.