We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ede21 commit 27b3b1aCopy full SHA for 27b3b1a
nginx-controller/Makefile
@@ -6,7 +6,10 @@ PREFIX = nginxdemos/nginx-ingress
6
nginx-ingress:
7
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o nginx-ingress *.go
8
9
-container: nginx-ingress
+test:
10
+ godep go test ./...
11
+
12
+container: nginx-ingress test
13
docker build -t $(PREFIX):$(TAG) .
14
15
push: container
nginx-controller/controller/controller_test.go
@@ -6,7 +6,7 @@ import (
func TestPathOrDefaultReturnDefault(t *testing.T) {
path := ""
- expected = "/"
+ expected := "/"
if pathOrDefault(path) != expected {
t.Errorf("pathOrDefault(%q) should return %q", path, expected)
}
0 commit comments