Skip to content

Commit

Permalink
fix: admin controller test compilation (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev authored Jul 29, 2022
1 parent b82f426 commit 60299ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/admin/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion pkg/server/controller_admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions pkg/server/server_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 60299ed

Please sign in to comment.