Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias ETIENNE committed Aug 5, 2015
1 parent 174982a commit 75818cf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/fixtures/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var App = require('../../app')

exports.HttpProxyDriver = HttpProxyDriver;

process.env.DOCKER_HOST = 'tcp://127.0.0.1:2376'

sinon.stub(exports, 'HttpProxyDriver', function() {
console.log("called with %j", arguments)
});
Expand Down
3 changes: 1 addition & 2 deletions test/unit/lib/app-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('app', function () {

before(function () {

process.env.DOCKER_HOST = 'tcp://192.168.59.103:2376'
/*
containers = [
new DockerContainer(app, ContainersFixtures.container1.basic_info, ContainersFixtures.container1.data),
Expand All @@ -28,7 +27,7 @@ describe('app', function () {
describe('.getDockerInfos', function() {
it('should return an object with hostname and port', function() {
should(app.getDockerInfos()).be.Object()
should(app.getDockerInfos()).have.property('hostname', '192.168.59.103')
should(app.getDockerInfos()).have.property('hostname', '127.0.0.1')
should(app.getDockerInfos()).have.property('port', '2376')
})
})
Expand Down
1 change: 0 additions & 1 deletion test/unit/lib/container-helper-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe('container-helper', function () {
var containers

before(function () {
process.env.DOCKER_HOST = 'tcp://192.168.59.103:2376'
containers = [
new DockerContainer(app, ContainersFixtures.container1.basic_info, ContainersFixtures.container1.data),
new DockerContainer(app, ContainersFixtures.container2.basic_info, ContainersFixtures.container2.data),
Expand Down
1 change: 0 additions & 1 deletion test/unit/lib/docker-api-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('docker-api', function () {


before(function () {
process.env.DOCKER_HOST = 'tcp://192.168.59.103:2376'
})

it('should return a DockerAPI instance', function () {
Expand Down
1 change: 0 additions & 1 deletion test/unit/lib/doker-container-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe('docker-container', function () {
var container4

before(function () {
process.env.DOCKER_HOST = 'tcp://192.168.59.103:2376'
})

describe("new DockerContainer()", function () {
Expand Down

0 comments on commit 75818cf

Please sign in to comment.