Skip to content

Commit

Permalink
test: remove source test
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 5, 2024
1 parent cfe6e64 commit fa921be
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions internal/engine/source/near/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,21 @@ import (
"github.com/rss3-network/node/config"
"github.com/rss3-network/node/internal/engine"
"github.com/rss3-network/node/internal/engine/source/near"
"github.com/rss3-network/protocol-go/schema/network"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestDataSource(t *testing.T) {
t.Parallel()

testCases := []struct {
var testCases []struct {
name string
config *config.Module
sourceFilter engine.DataSourceFilter
checkpoint *engine.Checkpoint
expectedError string
expectedTasks int
expectedHeight uint64
}{
{
name: "Success",
config: &config.Module{
Network: network.Near,
Endpoint: config.Endpoint{
URL: "https://archival-rpc.mainnet.near.org",
},
Parameters: &config.Parameters{
"block_start": 127170738,
},
},
sourceFilter: &near.Filter{},
checkpoint: nil,
expectedTasks: 129,
expectedHeight: 127170740,
},
// Add more test cases as needed
}

for _, testCase := range testCases {

Check failure on line 29 in internal/engine/source/near/data_source_test.go

View workflow job for this annotation

GitHub Actions / Lint

nilness: nil dereference in index operation (govet)
Expand Down

0 comments on commit fa921be

Please sign in to comment.