Skip to content

Commit

Permalink
fix: set fork test sequential
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Dec 21, 2024
1 parent d3717e4 commit 7ac95fe
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions gno.land/pkg/integration/fork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,30 @@ import (

"github.com/gnolang/gno/gnovm/pkg/gnoenv"
"github.com/gnolang/gno/tm2/pkg/bft/rpc/client"
"github.com/gnolang/gno/tm2/pkg/crypto/ed25519"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

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

ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

tmpdir := t.TempDir()

gnoRootDir := gnoenv.RootDir()

gnolandBuildDir := filepath.Join(tmpdir, "build")
gnolandDBDir := filepath.Join(tmpdir, "db")
gnolandBin := filepath.Join(gnolandBuildDir, "gnoland")

err := buildGnoland(t, gnoRootDir, gnolandBin)
require.NoError(t, err)

cfg := TestingMinimalNodeConfig(gnoRootDir)

remoteAddr, cmd, err := ExecuteForkBinary(ctx, gnolandBin, &ForkConfig{
Verbose: true,
PrivValidator: ed25519.GenPrivKey(),
DBDir: gnolandDBDir,
RootDir: gnoRootDir,
TMConfig: cfg.TMConfig,
Genesis: NewMarshalableGenesisDoc(cfg.Genesis),
Verbose: true,
RootDir: gnoRootDir,
TMConfig: cfg.TMConfig,
Genesis: NewMarshalableGenesisDoc(cfg.Genesis),
})
require.NoError(t, err)

Expand Down

0 comments on commit 7ac95fe

Please sign in to comment.