mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-05 21:56:45 +00:00

* added wait for another block to have more reliable tests * Added one network reload in case the address/port was still bound during the last try test related * separated Dao test suites (faster output on the CI) * added 2 seconds wait time to avoid errors of still blocked ports/bindings (network) * removed parallel flag from test/e2e/asset * renamed a bunch of things to please the linters * moved the reset of the libConfing clientctx back to the validator context before waiting for some blocks. This should prevent the panic: Log in goroutine after TestE2EMachineTestSuite has completed: [app] PoP broadcast tx failed: node0.info: key not found on the CI. Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
18 lines
312 B
Go
18 lines
312 B
Go
package asset
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/planetmint/planetmint-go/testutil/network"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
func TestE2EAssetTestSuite(t *testing.T) {
|
|
time.Sleep(2 * time.Second)
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewE2ETestSuite(cfg))
|
|
}
|