diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index c0f0a476d4..719a53db39 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -10,7 +10,7 @@ on: jobs: api_tests: - name: Run api Integration Tests + name: API runs-on: ubuntu-latest steps: @@ -25,7 +25,7 @@ jobs: run: make test-integration TAGS=api blob_tests: - name: Run blob Integration Tests + name: Blob runs-on: ubuntu-latest steps: @@ -40,7 +40,7 @@ jobs: run: make test-integration TAGS=blob fraud_tests: - name: Run fraud Integration Tests + name: Fraud runs-on: ubuntu-latest steps: @@ -55,7 +55,7 @@ jobs: run: make test-integration TAGS=fraud nd_tests: - name: Run nd Integration Tests + name: ND runs-on: ubuntu-latest steps: @@ -70,7 +70,7 @@ jobs: run: make test-integration TAGS=nd p2p_tests: - name: Run p2p Integration Tests + name: p2p runs-on: ubuntu-latest steps: @@ -85,7 +85,7 @@ jobs: run: make test-integration TAGS=p2p reconstruction_tests: - name: Run Reconstruction Integration Tests + name: Reconstruction runs-on: ubuntu-latest steps: @@ -100,7 +100,7 @@ jobs: run: make test-integration TAGS=reconstruction sync_tests: - name: Run Sync Integration Tests + name: Sync runs-on: ubuntu-latest steps: diff --git a/nodebuilder/tests/api_test.go b/nodebuilder/tests/api_test.go index 9bed822ebc..a793ba7b33 100644 --- a/nodebuilder/tests/api_test.go +++ b/nodebuilder/tests/api_test.go @@ -20,6 +20,10 @@ import ( "github.com/celestiaorg/celestia-node/nodebuilder/tests/swamp" ) +const ( + btime = time.Millisecond * 300 +) + func TestNodeModule(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), swamp.DefaultTestTimeout) t.Cleanup(cancel) diff --git a/nodebuilder/tests/client.go b/nodebuilder/tests/helpers_test.go similarity index 80% rename from nodebuilder/tests/client.go rename to nodebuilder/tests/helpers_test.go index 75235a5416..1e7f14d823 100644 --- a/nodebuilder/tests/client.go +++ b/nodebuilder/tests/helpers_test.go @@ -1,8 +1,10 @@ +//nolint:unused package tests import ( "context" "testing" + "time" "github.com/celestiaorg/celestia-node/api/rpc/client" "github.com/celestiaorg/celestia-node/libs/authtoken" @@ -12,7 +14,6 @@ import ( "github.com/stretchr/testify/require" ) -//nolint:unused func getAdminClient(ctx context.Context, nd *nodebuilder.Node, t *testing.T) *client.Client { t.Helper() @@ -27,3 +28,8 @@ func getAdminClient(ctx context.Context, nd *nodebuilder.Node, t *testing.T) *cl return client } + +func setTimeInterval(cfg *nodebuilder.Config, interval time.Duration) { + cfg.P2P.RoutingTableRefreshPeriod = interval + cfg.Share.Discovery.AdvertiseInterval = interval +} diff --git a/nodebuilder/tests/p2p_test.go b/nodebuilder/tests/p2p_test.go index a27b32143e..98e9fc15b4 100644 --- a/nodebuilder/tests/p2p_test.go +++ b/nodebuilder/tests/p2p_test.go @@ -201,8 +201,3 @@ func TestRestartNodeDiscovery(t *testing.T) { require.NoError(t, err) assert.Equal(t, connectedness, network.Connected) } - -func setTimeInterval(cfg *nodebuilder.Config, interval time.Duration) { - cfg.P2P.RoutingTableRefreshPeriod = interval - cfg.Share.Discovery.AdvertiseInterval = interval -}