fix test
This commit is contained in:
parent
a4809d8371
commit
ed3b895284
|
|
@ -7,5 +7,5 @@ before_install:
|
||||||
install:
|
install:
|
||||||
- go mod download
|
- go mod download
|
||||||
script:
|
script:
|
||||||
- golangci-lint run --enable-all -D gochecknoinits -D funlen
|
- golangci-lint run --enable-all -D gochecknoinits -D funlen -e gomnd
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ func (u *promUnifi) ScrapeHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *promUnifi) DefaultHandler(w http.ResponseWriter, r *http.Request) {
|
func (u *promUnifi) DefaultHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(http.StatusOK)
|
||||||
_, _ = w.Write([]byte(poller.AppName + "\n"))
|
_, _ = w.Write([]byte(poller.AppName + "\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue