Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ jobs:

steps:
- name: Checkout E2E
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: vechain/hayabusa-e2e
path: hayabusa-e2e

- name: Checkout Thor
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: vechain/thor
path: thor
ref: ${{ inputs.thor-branch || 'master' }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version: 1.24.x
go-version-file: 'hayabusa-e2e/go.mod'

- name: Test
run: go test -v -parallel 4 -failfast -timeout 3600s ./${{ matrix.packages }}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vechain/hayabusa-e2e

go 1.24.2
go 1.26.5

replace github.com/syndtr/goleveldb => github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655

Expand Down
2 changes: 1 addition & 1 deletion tests/validations/validations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ func assertValidatorStakingPeriod(t *testing.T, staker *builtin.Staker, validato
assert.Equal(t, expectedPeriod, validator.Period)
}

func setupTestNetwork(t *testing.T, maxBlockProposers uint32) (*hayabusa.Config, *thorclient.Client, hayabusa.Network) {
func setupTestNetwork(t *testing.T, maxBlockProposers uint32) (*hayabusa.Config, *thorclient.Client, *hayabusa.Network) {
return testutil.SetupTestNetworkWithEpochAndBlockInterval(t, maxBlockProposers, 2, 5)
}

Expand Down
4 changes: 2 additions & 2 deletions testutil/config_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/vechain/thor/v2/thorclient/builtin"
)

func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers uint32, epochLength uint32, blockInterval uint64) (*hayabusa.Config, *thorclient.Client, hayabusa.Network) {
func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers uint32, epochLength uint32, blockInterval uint64) (*hayabusa.Config, *thorclient.Client, *hayabusa.Network) {
config := &hayabusa.Config{
Nodes: 6,
MaxBlockProposers: maxBlockProposers,
Expand All @@ -34,7 +34,7 @@ func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers u
require.NoError(t, err)
t.Cleanup(network.Stop)
require.NoError(t, network.Start())
return config, network.ThorClient(), *network
return config, network.ThorClient(), network
}

func SetupStakerAndWaitForFork(t *testing.T, client *thorclient.Client, config *hayabusa.Config) *builtin.Staker {
Expand Down
Loading