File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 9
9
script :
10
10
- bash "$DOCKER_PATH/hack/make/validate-dco"
11
11
- bash "$DOCKER_PATH/hack/make/validate-gofmt"
12
+ - go test
Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ func TestContainerJsonFormat(t *testing.T) {
37
37
t .Fail ()
38
38
}
39
39
40
- if len (container .Routes ) != 2 {
41
- t .Log ("should have found 2 routes" )
42
- t .Fail ()
43
- }
44
-
45
40
if ! container .Namespaces ["NEWNET" ] {
46
41
t .Log ("namespaces should contain NEWNET" )
47
42
t .Fail ()
@@ -62,8 +57,8 @@ func TestContainerJsonFormat(t *testing.T) {
62
57
t .Fail ()
63
58
}
64
59
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" )
67
62
t .Fail ()
68
63
}
69
64
}
You can’t perform that action at this time.
0 commit comments