mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
* added TermintionWaitGroup * added mutex to lib/tx * removed machine attestation thread (to comply with testing-race conditions becoming apparent on the CI) * renamed test suites to have a clear naming structure * removed parallel-testing from e2e machine test suite * improved test suite logging * removed parallel tests of machine_nft_tests - this caused data races due to the mock overwrites * reduced error check to "out of gas" due to multi-threading and locking delays that result in different gas consumptions * Added waiting blocks to pass the CI Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
40 lines
936 B
Go
40 lines
936 B
Go
package dao
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/planetmint/planetmint-go/testutil/network"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
func TestE2EDaoTestSuite(t *testing.T) {
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewE2ETestSuite(cfg))
|
|
}
|
|
|
|
func TestPopE2EDaoTestSuite(t *testing.T) {
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewPopSelectionE2ETestSuite(cfg))
|
|
}
|
|
|
|
func TestGasConsumptionE2EDaoTestSuite(t *testing.T) {
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewGasConsumptionE2ETestSuite(cfg))
|
|
}
|
|
|
|
func TestRestrictedMsgsE2EDaoTestSuite(t *testing.T) {
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewRestrictedMsgsE2ESuite(cfg))
|
|
}
|
|
|
|
func TestAssetDistributionE2EDaoTestSuite(t *testing.T) {
|
|
cfg := network.LoaderDefaultConfig()
|
|
cfg.NumValidators = 3
|
|
suite.Run(t, NewAssetDistributionE2ETestSuite(cfg))
|
|
}
|