From 619088c49f33a3607ea766b7d86982681e67a80e Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 17 Jun 2014 16:08:01 -0700 Subject: [PATCH] Update travis to run unit tests Also fix container_tests.go Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- .travis.yml | 1 + container_test.go | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae7e8e2fc..94dc5ac7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,4 @@ install: script: - bash "$DOCKER_PATH/hack/make/validate-dco" - bash "$DOCKER_PATH/hack/make/validate-gofmt" + - go test diff --git a/container_test.go b/container_test.go index 838281833..deb65aa83 100644 --- a/container_test.go +++ b/container_test.go @@ -37,11 +37,6 @@ func TestContainerJsonFormat(t *testing.T) { t.Fail() } - if len(container.Routes) != 2 { - t.Log("should have found 2 routes") - t.Fail() - } - if !container.Namespaces["NEWNET"] { t.Log("namespaces should contain NEWNET") t.Fail() @@ -62,8 +57,8 @@ func TestContainerJsonFormat(t *testing.T) { t.Fail() } - if contains("SYS_CHROOT", container.Capabilities) { - t.Log("capabilities mask should not contain SYS_CHROOT") + if !contains("SYS_CHROOT", container.Capabilities) { + t.Log("capabilities mask should contain SYS_CHROOT") t.Fail() } }