planetmint-go/lib/tests/e2e/cli_test.go
Jürgen Eckel aec55171f9
every node needs a key pair (#488)
* added panic if there is no key pair that can be used for the node (keystore or trustwallet)
* renamed GetValidatorAddress to GetNodeAddress
* fixed lib/test/e2e failing test case. The issue is an internal race condition of the unit test network in case of 1 node. Moving to two nodes solves the issue with the test case. In case of 1 validator, the first chain interaction happens before the address environment variables are set

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2024-11-26 15:31:39 +01:00

17 lines
289 B
Go

package machine
import (
"testing"
"github.com/planetmint/planetmint-go/testutil/network"
"github.com/stretchr/testify/suite"
)
func TestE2ELibTestSuite(t *testing.T) {
t.Parallel()
cfg := network.LoaderDefaultConfig()
cfg.NumValidators = 2
suite.Run(t, NewE2ETestSuite(cfg))
}