diff --git a/pkg/admin/controller_test.go b/pkg/admin/controller_test.go index adbc2d6968..83d3932cad 100644 --- a/pkg/admin/controller_test.go +++ b/pkg/admin/controller_test.go @@ -29,8 +29,8 @@ func (m mockStorage) GetAppNames(ctx context.Context) []string { return m.getAppNamesResult } -func (m mockStorage) GetApps(ctx context.Context) storage.GetAppsOutput { - return m.getAppsResult +func (m mockStorage) GetApps(ctx context.Context) (storage.GetAppsOutput, error) { + return m.getAppsResult, nil } func (m mockStorage) DeleteApp(ctx context.Context, appname string) error { diff --git a/pkg/server/controller_admin_test.go b/pkg/server/controller_admin_test.go index 7af9ed603b..bf31a7e465 100644 --- a/pkg/server/controller_admin_test.go +++ b/pkg/server/controller_admin_test.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "encoding/json" - "github.com/pyroscope-io/pyroscope/pkg/model" "github.com/pyroscope-io/pyroscope/pkg/service" "github.com/pyroscope-io/pyroscope/pkg/sqlstore" diff --git a/pkg/server/server_suite_test.go b/pkg/server/server_suite_test.go index abee90eba0..93728326c7 100644 --- a/pkg/server/server_suite_test.go +++ b/pkg/server/server_suite_test.go @@ -4,13 +4,15 @@ package server_test import ( - "testing" - . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" + "testing" + "time" ) func TestServer(t *testing.T) { RegisterFailHandler(Fail) - RunSpecs(t, "Server Suite") + suiteConfig, reporterConfig := GinkgoConfiguration() + reporterConfig.SlowSpecThreshold = 30 * time.Second + RunSpecs(t, "Server Suite", suiteConfig, reporterConfig) }