mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-25 23:15:45 +00:00
* removed parallel-testing from e2e machine test suite
* improved test suite logging Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
324bd43bdf
commit
453a1059df
@ -29,14 +29,14 @@ func NewE2ETestSuite(cfg network.Config) *E2ETestSuite {
|
|||||||
|
|
||||||
// SetupSuite initializes machine E2ETestSuite
|
// SetupSuite initializes machine E2ETestSuite
|
||||||
func (s *E2ETestSuite) SetupSuite() {
|
func (s *E2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e lib test suite")
|
||||||
|
|
||||||
s.network = network.New(s.T())
|
s.network = network.New(s.T())
|
||||||
}
|
}
|
||||||
|
|
||||||
// TearDownSuite clean up after testing
|
// TearDownSuite clean up after testing
|
||||||
func (s *E2ETestSuite) TearDownSuite() {
|
func (s *E2ETestSuite) TearDownSuite() {
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e lib test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *E2ETestSuite) TestBankSendBroadcastTxWithFileLock() {
|
func (s *E2ETestSuite) TestBankSendBroadcastTxWithFileLock() {
|
||||||
|
|||||||
@ -30,7 +30,7 @@ func NewE2ETestSuite(cfg network.Config) *E2ETestSuite {
|
|||||||
|
|
||||||
// SetupSuite initializes asset E2ETestSuite
|
// SetupSuite initializes asset E2ETestSuite
|
||||||
func (s *E2ETestSuite) SetupSuite() {
|
func (s *E2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e asset test suite")
|
||||||
|
|
||||||
s.network = network.Load(s.T(), s.cfg)
|
s.network = network.Load(s.T(), s.cfg)
|
||||||
err := e2etestutil.AttestMachine(s.network, sample.Name, sample.Mnemonic, 0, sample.FeeDenom)
|
err := e2etestutil.AttestMachine(s.network, sample.Name, sample.Mnemonic, 0, sample.FeeDenom)
|
||||||
@ -40,7 +40,7 @@ func (s *E2ETestSuite) SetupSuite() {
|
|||||||
// TearDownSuite clean up after testing
|
// TearDownSuite clean up after testing
|
||||||
func (s *E2ETestSuite) TearDownSuite() {
|
func (s *E2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e asset test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestNotarizeAsset notarizes asset over cli
|
// TestNotarizeAsset notarizes asset over cli
|
||||||
|
|||||||
@ -26,7 +26,7 @@ func NewAssetDistributionE2ETestSuite(cfg network.Config) *AssetDistributionE2ET
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *AssetDistributionE2ETestSuite) SetupSuite() {
|
func (s *AssetDistributionE2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e dao distribution test suite")
|
||||||
|
|
||||||
// set epochs: make sure to start after initial height of 7
|
// set epochs: make sure to start after initial height of 7
|
||||||
s.distributionOffset = 5
|
s.distributionOffset = 5
|
||||||
@ -43,7 +43,7 @@ func (s *AssetDistributionE2ETestSuite) SetupSuite() {
|
|||||||
|
|
||||||
func (s *AssetDistributionE2ETestSuite) TearDownSuite() {
|
func (s *AssetDistributionE2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suites")
|
s.T().Log("tearing down e2e dao distribution test suites")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *AssetDistributionE2ETestSuite) TestAssetDistribution() {
|
func (s *AssetDistributionE2ETestSuite) TestAssetDistribution() {
|
||||||
|
|||||||
@ -64,7 +64,7 @@ func (s *GasConsumptionE2ETestSuite) createValAccount(cfg network.Config) (addre
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *GasConsumptionE2ETestSuite) SetupSuite() {
|
func (s *GasConsumptionE2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e dao gas consumption test suite")
|
||||||
|
|
||||||
s.feeDenom = sample.FeeDenom
|
s.feeDenom = sample.FeeDenom
|
||||||
s.cfg.Mnemonics = []string{sample.Mnemonic}
|
s.cfg.Mnemonics = []string{sample.Mnemonic}
|
||||||
@ -95,7 +95,7 @@ func (s *GasConsumptionE2ETestSuite) SetupSuite() {
|
|||||||
|
|
||||||
func (s *GasConsumptionE2ETestSuite) TearDownSuite() {
|
func (s *GasConsumptionE2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suites")
|
s.T().Log("tearing down e2e dao gas consumption test suites")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *GasConsumptionE2ETestSuite) TestValidatorConsumption() {
|
func (s *GasConsumptionE2ETestSuite) TestValidatorConsumption() {
|
||||||
|
|||||||
@ -62,7 +62,7 @@ func NewPopSelectionE2ETestSuite(cfg network.Config) *PopSelectionE2ETestSuite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *PopSelectionE2ETestSuite) SetupSuite() {
|
func (s *PopSelectionE2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e dao pop selection test suite")
|
||||||
|
|
||||||
s.popEpochs = 10
|
s.popEpochs = 10
|
||||||
s.reissuanceEpochs = 60
|
s.reissuanceEpochs = 60
|
||||||
@ -88,7 +88,7 @@ func (s *PopSelectionE2ETestSuite) SetupSuite() {
|
|||||||
// TearDownSuite clean up after testing
|
// TearDownSuite clean up after testing
|
||||||
func (s *PopSelectionE2ETestSuite) TearDownSuite() {
|
func (s *PopSelectionE2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e dao pop selection test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *PopSelectionE2ETestSuite) perpareLocalTest() testutil.BufferWriter {
|
func (s *PopSelectionE2ETestSuite) perpareLocalTest() testutil.BufferWriter {
|
||||||
|
|||||||
@ -35,7 +35,7 @@ func NewRestrictedMsgsE2ESuite(cfg network.Config) *RestrictedMsgsE2ESuite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *RestrictedMsgsE2ESuite) SetupSuite() {
|
func (s *RestrictedMsgsE2ESuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e dao restricted msg test suite")
|
||||||
|
|
||||||
s.network = network.Load(s.T(), s.cfg)
|
s.network = network.Load(s.T(), s.cfg)
|
||||||
account, err := e2etestutil.CreateAccount(s.network, sample.Name, sample.Mnemonic)
|
account, err := e2etestutil.CreateAccount(s.network, sample.Name, sample.Mnemonic)
|
||||||
@ -46,7 +46,7 @@ func (s *RestrictedMsgsE2ESuite) SetupSuite() {
|
|||||||
|
|
||||||
func (s *RestrictedMsgsE2ESuite) TearDownSuite() {
|
func (s *RestrictedMsgsE2ESuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e dao restricted msg test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *RestrictedMsgsE2ESuite) TestRestrictedMsgsValidator() {
|
func (s *RestrictedMsgsE2ESuite) TestRestrictedMsgsValidator() {
|
||||||
|
|||||||
@ -49,7 +49,7 @@ func (s *E2ETestSuite) SetupSuite() {
|
|||||||
s.reissuanceEpochs = 25
|
s.reissuanceEpochs = 25
|
||||||
s.distributionOffset = 5
|
s.distributionOffset = 5
|
||||||
|
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e dao test suite")
|
||||||
|
|
||||||
// Setup MintAddress parameter in genesis state
|
// Setup MintAddress parameter in genesis state
|
||||||
// use sample.Mnemonic to make mint address deterministic for test
|
// use sample.Mnemonic to make mint address deterministic for test
|
||||||
@ -111,7 +111,7 @@ func (s *E2ETestSuite) SetupSuite() {
|
|||||||
// TearDownSuite clean up after testing
|
// TearDownSuite clean up after testing
|
||||||
func (s *E2ETestSuite) TearDownSuite() {
|
func (s *E2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e dao test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *E2ETestSuite) TestMintToken() {
|
func (s *E2ETestSuite) TestMintToken() {
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestE2EMachineTestSuite(t *testing.T) {
|
func TestE2EMachineTestSuite(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
cfg := network.LoaderDefaultConfig()
|
cfg := network.LoaderDefaultConfig()
|
||||||
cfg.NumValidators = 3
|
cfg.NumValidators = 3
|
||||||
suite.Run(t, NewE2ETestSuite(cfg))
|
suite.Run(t, NewE2ETestSuite(cfg))
|
||||||
|
|||||||
@ -36,7 +36,7 @@ func NewE2ETestSuite(cfg network.Config) *E2ETestSuite {
|
|||||||
|
|
||||||
// SetupSuite initializes machine E2ETestSuite
|
// SetupSuite initializes machine E2ETestSuite
|
||||||
func (s *E2ETestSuite) SetupSuite() {
|
func (s *E2ETestSuite) SetupSuite() {
|
||||||
s.T().Log("setting up e2e test suite")
|
s.T().Log("setting up e2e machine test suite")
|
||||||
|
|
||||||
s.feeDenom = sample.FeeDenom
|
s.feeDenom = sample.FeeDenom
|
||||||
s.network = network.Load(s.T(), s.cfg)
|
s.network = network.Load(s.T(), s.cfg)
|
||||||
@ -51,7 +51,7 @@ func (s *E2ETestSuite) SetupSuite() {
|
|||||||
// TearDownSuite clean up after testing
|
// TearDownSuite clean up after testing
|
||||||
func (s *E2ETestSuite) TearDownSuite() {
|
func (s *E2ETestSuite) TearDownSuite() {
|
||||||
util.TerminationWaitGroup.Wait()
|
util.TerminationWaitGroup.Wait()
|
||||||
s.T().Log("tearing down e2e test suite")
|
s.T().Log("tearing down e2e machine test suite")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestAttestMachine attests machine and query attested machine from chain
|
// TestAttestMachine attests machine and query attested machine from chain
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user