Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Aug 30, 2024
1 parent 5edfbd8 commit 96f5d42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions pkg/data/fetcher_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package data

import (
"github.com/stretchr/testify/require"
"gopkg.in/guregu/null.v4"
configPkg "main/pkg/config"
"main/pkg/constants"
"main/pkg/data/fetchers"
loggerPkg "main/pkg/logger"
"main/pkg/metrics"
"testing"

"github.com/stretchr/testify/require"
"gopkg.in/guregu/null.v4"
)

func TestFetcherManager(t *testing.T) {
Expand All @@ -18,8 +19,8 @@ func TestFetcherManager(t *testing.T) {
metricsManager := metrics.NewManager(*logger, configPkg.MetricsConfig{Enabled: null.BoolFrom(false)})

fetcher1 := GetFetcher(&configPkg.ChainConfig{FetcherType: constants.FetcherTypeCosmosLCD}, *logger, metricsManager)
require.IsType(t, fetcher1, &fetchers.CosmosLCDFetcher{})
require.IsType(t, &fetchers.CosmosLCDFetcher{}, fetcher1)

fetcher2 := GetFetcher(&configPkg.ChainConfig{}, *logger, metricsManager)
require.IsType(t, fetcher2, &fetchers.CosmosRPCFetcher{})
require.IsType(t, &fetchers.CosmosRPCFetcher{}, fetcher2)
}
7 changes: 4 additions & 3 deletions pkg/data/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package data

import (
"errors"
"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/require"
"gopkg.in/guregu/null.v4"
"main/assets"
configPkg "main/pkg/config"
loggerPkg "main/pkg/logger"
"main/pkg/metrics"
"testing"

"github.com/jarcoal/httpmock"
"github.com/stretchr/testify/require"
"gopkg.in/guregu/null.v4"
)

//nolint:paralleltest // disabled due to httpmock usage
Expand Down

0 comments on commit 96f5d42

Please sign in to comment.