Skip to content

Commit

Permalink
test: Fix failing unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Dec 24, 2024
1 parent fe63d9d commit 3482e92
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/plugin/dashboard/panels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"testing"

"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/backend/httpclient"
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
"github.com/mahendrapaipuri/grafana-dashboard-reporter-app/pkg/plugin/chrome"
"github.com/mahendrapaipuri/grafana-dashboard-reporter-app/pkg/plugin/config"
Expand Down Expand Up @@ -86,8 +87,9 @@ func TestDashboardFetchWithLocalChrome(t *testing.T) {

Convey("When using the panels fetcher", func() {
conf := config.Config{
Layout: "simple",
DashboardMode: "default",
Layout: "simple",
DashboardMode: "default",
HTTPClientOptions: httpclient.Options{Timeouts: &httpclient.DefaultTimeoutOptions},
}

ctx := context.Background()
Expand Down Expand Up @@ -186,8 +188,9 @@ func TestDashboardFetchWithRemoteChrome(t *testing.T) {

Convey("When using the Grafana httpClient", func() {
conf := config.Config{
Layout: "simple",
DashboardMode: "default",
Layout: "simple",
DashboardMode: "default",
HTTPClientOptions: httpclient.Options{Timeouts: &httpclient.DefaultTimeoutOptions},
}

ctx := context.Background()
Expand Down

0 comments on commit 3482e92

Please sign in to comment.