Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (linting): Add E2E to linting

Rostislav Dugin7e76945550d5
diff --git a/agent/Makefile b/agent/Makefile
index 5e65af1f..c437aff5 100644
--- a/agent/Makefile
+++ b/agent/Makefile
@@ -11,7 +11,7 @@ test:
go test -count=1 -failfast ./internal/...
lint:
- golangci-lint fmt ./cmd/... ./internal/... && golangci-lint run ./cmd/... ./internal/...
+ golangci-lint fmt ./cmd/... ./internal/... ./e2e/... && golangci-lint run ./cmd/... ./internal/... ./e2e/...
e2e:
cd e2e && docker compose build
diff --git a/agent/e2e/mock-server/main.go b/agent/e2e/mock-server/main.go
index 092bc8af..60d04327 100644
--- a/agent/e2e/mock-server/main.go
+++ b/agent/e2e/mock-server/main.go
@@ -75,7 +75,7 @@ func (s *server) handleSetVersion(w http.ResponseWriter, r *http.Request) {
log.Printf("POST /mock/set-version -> %s", body.Version)
- fmt.Fprintf(w, "version set to %s", body.Version)
+ _, _ = fmt.Fprintf(w, "version set to %s", body.Version)
}
func (s *server) handleHealth(w http.ResponseWriter, _ *http.Request) {