- Override wsHandshakeTimeout in 3 websocket tests that waited 30s each - Make initialRetryDelay a package variable for faster retry tests - Reduce time.Sleep calls across agent_test.go (1.5s->150ms, 3s->1s, etc.) - Update Makefile with test-fast and test-short targets, add -count=1 - Update golang.org/x/crypto, x/net, x/sys to latest minors - Fix TestWSDialDefaultPorts to use mocked dials instead of real TCP
26 lines
497 B
Makefile
26 lines
497 B
Makefile
.PHONY: proto test test-fast test-race build vet lint
|
|
|
|
proto:
|
|
protoc --go_out=. --go_opt=paths=source_relative proto/agent.proto
|
|
@# protoc outputs to proto/ due to go_package; move to pb/
|
|
mv proto/agent.pb.go pb/agent.pb.go
|
|
|
|
test:
|
|
go test -race -v -count=1 -timeout 60s ./...
|
|
|
|
test-fast:
|
|
go test -count=1 -timeout 60s ./...
|
|
|
|
test-short:
|
|
go test -count=1 -timeout 30s -short ./...
|
|
|
|
build:
|
|
go build -o towerops-agent .
|
|
|
|
vet:
|
|
go vet ./...
|
|
|
|
lint:
|
|
golangci-lint run
|
|
|
|
all: proto vet test build
|