Needs != for this. Do not try to test client for functions go if there

This commit is contained in:
James Jeffrey
2017-07-06 09:18:09 -07:00
parent 7f226bc96b
commit 3087a12b83
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ func bindAndValidate(c *gin.Context, log logrus.FieldLogger, method string, wrou
wroute.Route.SetDefaults()
if err = wroute.Validate(method == http.MethodPost); err != nil {
if err = wroute.Validate(method != http.MethodPost); err != nil {
log.WithError(err).Debug(models.ErrRoutesCreate)
return err
}

View File

@@ -46,7 +46,7 @@ container_ip)
;;
esac
go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fn)
go test -v $(go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fn| grep -v tmp/go/src)
# go test -v gitlab-odx.oracle.com/odx/functions/api/runner/drivers/docker
cd fn && make build && make test