Skip to content

Commit 27b3b1a

Browse files
committed
Fix test
1 parent 45ede21 commit 27b3b1a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nginx-controller/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ PREFIX = nginxdemos/nginx-ingress
66
nginx-ingress:
77
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o nginx-ingress *.go
88

9-
container: nginx-ingress
9+
test:
10+
godep go test ./...
11+
12+
container: nginx-ingress test
1013
docker build -t $(PREFIX):$(TAG) .
1114

1215
push: container

nginx-controller/controller/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
func TestPathOrDefaultReturnDefault(t *testing.T) {
88
path := ""
9-
expected = "/"
9+
expected := "/"
1010
if pathOrDefault(path) != expected {
1111
t.Errorf("pathOrDefault(%q) should return %q", path, expected)
1212
}

0 commit comments

Comments
 (0)