Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix integration tests in CI #77

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ jobs:
- name: Test Unit
run: make test

# TODO(yevhenii): point KAVA_RPC_URL to running kava node and uncomment
# - name: Test Integration
# run: KAVA_RPC_URL=http://50.16.212.18:26658 NETWORK=kava-mainnet PORT=4000 make test-integration
- name: Test Integration
run: KAVA_RPC_URL=https://rpc.data.infra.kava.io:443 NETWORK=kava-mainnet PORT=4000 SKIP_RESOURCE_INTENSIVE_TESTS=true make test-integration

lint:
name: lint
Expand Down
5 changes: 5 additions & 0 deletions testing/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"errors"
"fmt"
"math/rand"
"os"
"sort"
"strings"
"testing"
Expand Down Expand Up @@ -61,6 +62,10 @@ func TestAccountBalanceOnlineRetry(t *testing.T) {
t.Skip("skipping account online test")
}

if os.Getenv("SKIP_RESOURCE_INTENSIVE_TESTS") == "true" {
t.Skip("skipping account balance online retry test: it's resource intensive and produces a lot of requests to the node")
}

numJobs := 10
jobCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
Expand Down
4 changes: 4 additions & 0 deletions testing/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func TestBlockRetry(t *testing.T) {
t.Skip("skipping block retry test: it's designed to be run against a live (mainnet) node")
}

if os.Getenv("SKIP_RESOURCE_INTENSIVE_TESTS") == "true" {
t.Skip("skipping block retry test: it's resource intensive and produces a lot of requests to the node")
}

numJobs := 10
jobCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
Expand Down
Loading