diff --git a/Dockerfile b/Dockerfile index 981901d..4e4ebb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ COPY cmd ./cmd COPY internal ./internal COPY pkg ./pkg COPY agent ./agent +COPY migrations ./migrations ARG VERSION ENV VERSION=${VERSION} @@ -59,4 +60,4 @@ ENV DOCKER_HOST=unix:///var/run/docker.sock WORKDIR /app -CMD ["/app/run"] \ No newline at end of file +CMD ["/app/run"] diff --git a/internal/gperr/subject.go b/internal/gperr/subject.go index c6640de..6167cca 100644 --- a/internal/gperr/subject.go +++ b/internal/gperr/subject.go @@ -6,7 +6,6 @@ import ( "strings" "github.com/yusing/go-proxy/pkg/json" - "github.com/yusing/go-proxy/internal/utils/strutils/ansi" ) diff --git a/internal/metrics/systeminfo/system_info_test.go b/internal/metrics/systeminfo/system_info_test.go index 8c1906f..25740a9 100644 --- a/internal/metrics/systeminfo/system_info_test.go +++ b/internal/metrics/systeminfo/system_info_test.go @@ -10,14 +10,6 @@ import ( "github.com/yusing/go-proxy/pkg/json" ) -func TestPoller(t *testing.T) { - for _, query := range allQueries { - t.Run(query, func(t *testing.T) { - Poller.Test(t, url.Values{"aggregate": []string{query}}) - }) - } -} - func TestExcludeDisks(t *testing.T) { tests := []struct { name string diff --git a/internal/net/gphttp/middleware/test_utils.go b/internal/net/gphttp/middleware/test_utils.go index a3eb34d..3448734 100644 --- a/internal/net/gphttp/middleware/test_utils.go +++ b/internal/net/gphttp/middleware/test_utils.go @@ -9,7 +9,6 @@ import ( "net/url" "github.com/yusing/go-proxy/pkg/json" - "github.com/yusing/go-proxy/internal/common" "github.com/yusing/go-proxy/internal/gperr" "github.com/yusing/go-proxy/internal/net/gphttp/reverseproxy"