Skip to content

Commit da2edd6

Browse files
committed
Merge pull request docker-archive#32 from crosbymichael/update-travis
Update travis to run unit tests
2 parents 077836d + 619088c commit da2edd6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ install:
99
script:
1010
- bash "$DOCKER_PATH/hack/make/validate-dco"
1111
- bash "$DOCKER_PATH/hack/make/validate-gofmt"
12+
- go test

container_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ func TestContainerJsonFormat(t *testing.T) {
3737
t.Fail()
3838
}
3939

40-
if len(container.Routes) != 2 {
41-
t.Log("should have found 2 routes")
42-
t.Fail()
43-
}
44-
4540
if !container.Namespaces["NEWNET"] {
4641
t.Log("namespaces should contain NEWNET")
4742
t.Fail()
@@ -62,8 +57,8 @@ func TestContainerJsonFormat(t *testing.T) {
6257
t.Fail()
6358
}
6459

65-
if contains("SYS_CHROOT", container.Capabilities) {
66-
t.Log("capabilities mask should not contain SYS_CHROOT")
60+
if !contains("SYS_CHROOT", container.Capabilities) {
61+
t.Log("capabilities mask should contain SYS_CHROOT")
6762
t.Fail()
6863
}
6964
}

0 commit comments

Comments
 (0)