Skip to content

Commit

Permalink
fix: run skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed May 24, 2024
1 parent aa65030 commit 91581b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
8 changes: 0 additions & 8 deletions node/pkg/fetcher/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
)

func TestFetcherRun(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -59,7 +58,6 @@ func TestFetcherRun(t *testing.T) {
}

func TestFetcherFetcherJob(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -105,7 +103,6 @@ func TestFetcherFetcherJob(t *testing.T) {
}

func TestFetcherFetch(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -134,7 +131,6 @@ func TestFetcherFetch(t *testing.T) {
}

func TestFetcherFetchProxy(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -190,7 +186,6 @@ func TestFetcherFetchProxy(t *testing.T) {
}

func TestFetcherCex(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -231,7 +226,6 @@ func TestFetcherCex(t *testing.T) {
}

func TestFetcherUniswapV3(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -272,7 +266,6 @@ func TestFetcherUniswapV3(t *testing.T) {
}

func TestRequestFeed(t *testing.T) {
t.Skip()
ctx := context.Background()
clean, testItems, err := setup(ctx)
if err != nil {
Expand Down Expand Up @@ -322,7 +315,6 @@ func TestFetcherRequestWithProxy(t *testing.T) {
}

func TestFetcherFilterProxyByLocation(t *testing.T) {
t.Skip()
uk := "uk"
us := "us"
kr := "kr"
Expand Down
14 changes: 3 additions & 11 deletions node/pkg/fetcher/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ func TestGetLatestFeedData(t *testing.T) {
}

keys := []string{"latestFeedData:1", "latestFeedData:2"}
// err := db.MSetObject(ctx, map[string]any{
// keys[0]: feedData[0],
// keys[1]: feedData[1],
// })
// if err != nil {
// t.Fatalf("error setting latest feed data: %v", err)
// }
err := setLatestFeedData(ctx, feedData)
if err != nil {
t.Fatalf("error setting latest feed data: %v", err)
Expand Down Expand Up @@ -278,8 +271,8 @@ func TestInsertLocalAggregatePgsql(t *testing.T) {

configs := testItems.insertedConfigs
for i, config := range configs {
//TODO: Remove int32 conversion after node admin fix pr has been merged
err := insertLocalAggregatePgsql(ctx, int32(config.Id), float64(i)+5)

err := insertLocalAggregatePgsql(ctx, config.Id, float64(i)+5)
if err != nil {
t.Fatalf("error inserting local aggregate pgsql: %v", err)
}
Expand Down Expand Up @@ -308,8 +301,7 @@ func TestInsertLocalAggregateRdb(t *testing.T) {

configs := testItems.insertedConfigs
for i, config := range configs {
//TODO: Remove int32 conversion after node admin fix pr has been merged
err := insertLocalAggregateRdb(ctx, int32(config.Id), float64(i)+5)
err := insertLocalAggregateRdb(ctx, config.Id, float64(i)+5)
if err != nil {
t.Fatalf("error inserting local aggregate rdb: %v", err)
}
Expand Down

0 comments on commit 91581b9

Please sign in to comment.