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

Commit

Permalink
Use none default port for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spathon committed Aug 9, 2018
1 parent ef242e5 commit c0f7678
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
prometheus:
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
express:
Expand Down
6 changes: 3 additions & 3 deletions test/assert-expectations.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ const should = require('chai').should()

module.exports = function (options) {
it('should return 200 for /', (done) => {
request('http://localhost:3000/', (e, r, b) => {
request('http://localhost:3555/', (e, r, b) => {
r.statusCode.should.equal(200)
return done(e)
})
})

it('should return 200 for /resource/id', (done) => {
request('http://localhost:3000/resource/101', (e, r, b) => {
request('http://localhost:3555/resource/101', (e, r, b) => {
r.statusCode.should.equal(200)
return done(e)
})
})

it('should return 200 for ' + options.url, (done) => {
request('http://localhost:3000' + options.url, (e, r, b) => {
request('http://localhost:3555' + options.url, (e, r, b) => {
r.statusCode.should.equal(200)
should.exist(r.headers['content-type'])
r.headers['content-type'].should.equal('text/plain; charset=utf-8')
Expand Down
2 changes: 1 addition & 1 deletion test/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function setup (options) {
app.get(options.routePath, (req, res) => {
res.send()
})
this.server = app.listen(3000, done)
this.server = app.listen(3555, done)
})

after((done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/hapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function setup (options) {
before((done) => {
this.server = new Hapi.Server()
this.server.connection({
port: 3000
port: 3555
})
epithemeus.instrument(this.server, options)
this.server.route({
Expand Down
2 changes: 1 addition & 1 deletion test/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function setup (options) {

epithemeus.instrument(this.server, options)

return this.server.listen(3000, '127.0.0.1', done)
return this.server.listen(3555, '127.0.0.1', done)
})

after((done) => {
Expand Down
2 changes: 1 addition & 1 deletion test/restify.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function setup (options) {
res.send()
done()
})
this.server.listen(3000, done)
this.server.listen(3555, done)
})

after((done) => {
Expand Down

0 comments on commit c0f7678

Please sign in to comment.