From 7fed5f5de696f78b59b099a2a09fa92481ebcbb7 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 23 Sep 2014 23:57:43 -0700 Subject: [PATCH] fixed docker test to use new default port --- shared/build/docker/client_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/build/docker/client_test.go b/shared/build/docker/client_test.go index 6869fddccb..efdd06a0a9 100644 --- a/shared/build/docker/client_test.go +++ b/shared/build/docker/client_test.go @@ -7,7 +7,7 @@ import ( ) func TestHostFromEnv(t *testing.T) { - os.Setenv("DOCKER_HOST", "tcp://1.1.1.1:4243") + os.Setenv("DOCKER_HOST", "tcp://1.1.1.1:2375") defer os.Setenv("DOCKER_HOST", "") client := New() @@ -16,18 +16,18 @@ func TestHostFromEnv(t *testing.T) { t.Fail() } - if client.addr != "1.1.1.1:4243" { + if client.addr != "1.1.1.1:2375" { t.Fail() } } func TestInvalidHostFromEnv(t *testing.T) { - os.Setenv("DOCKER_HOST", "tcp:1.1.1.1:4243") // missing tcp:// prefix + os.Setenv("DOCKER_HOST", "tcp:1.1.1.1:2375") // missing tcp:// prefix defer os.Setenv("DOCKER_HOST", "") client := New() - if client.addr == "1.1.1.1:4243" { + if client.addr == "1.1.1.1:2375" { t.Fail() } } @@ -61,7 +61,7 @@ func TestDefaultTcpHost(t *testing.T) { t.Fail() } - if client.addr != "0.0.0.0:4243" { + if client.addr != "0.0.0.0:2375" { t.Fail() } }