mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
* seperated 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 Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
c3ea98941b
commit
e1d8c1925f
@ -2,6 +2,7 @@ package asset
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/planetmint/planetmint-go/testutil/network"
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
@ -9,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestE2EAssetTestSuite(t *testing.T) {
|
func TestE2EAssetTestSuite(t *testing.T) {
|
||||||
t.Parallel()
|
time.Sleep(2 * time.Second)
|
||||||
cfg := network.LoaderDefaultConfig()
|
cfg := network.LoaderDefaultConfig()
|
||||||
cfg.NumValidators = 3
|
cfg.NumValidators = 3
|
||||||
suite.Run(t, NewE2ETestSuite(cfg))
|
suite.Run(t, NewE2ETestSuite(cfg))
|
||||||
|
|||||||
17
tests/e2e/dao/basic/cli_test.go
Normal file
17
tests/e2e/dao/basic/cli_test.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package basic
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestE2EDaoTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
cfg := network.LoaderDefaultConfig()
|
||||||
|
cfg.NumValidators = 3
|
||||||
|
suite.Run(t, NewE2ETestSuite(cfg))
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package dao
|
package basic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
@ -1,39 +0,0 @@
|
|||||||
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))
|
|
||||||
}
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package dao
|
package distribution
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
17
tests/e2e/dao/distribution/cli_test.go
Normal file
17
tests/e2e/dao/distribution/cli_test.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package distribution
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestAssetDistributionE2EDaoTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
cfg := network.LoaderDefaultConfig()
|
||||||
|
cfg.NumValidators = 3
|
||||||
|
suite.Run(t, NewAssetDistributionE2ETestSuite(cfg))
|
||||||
|
}
|
||||||
17
tests/e2e/dao/gasConsumption/cli_test.go
Normal file
17
tests/e2e/dao/gasConsumption/cli_test.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package gasConsumption
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestGasConsumptionE2EDaoTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
cfg := network.LoaderDefaultConfig()
|
||||||
|
cfg.NumValidators = 3
|
||||||
|
suite.Run(t, NewGasConsumptionE2ETestSuite(cfg))
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package dao
|
package gasConsumption
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
17
tests/e2e/dao/pop/cli_test.go
Normal file
17
tests/e2e/dao/pop/cli_test.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package pop
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestPopE2EDaoTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
cfg := network.LoaderDefaultConfig()
|
||||||
|
cfg.NumValidators = 3
|
||||||
|
suite.Run(t, NewPopSelectionE2ETestSuite(cfg))
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package dao
|
package pop
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
17
tests/e2e/dao/restrictedMsgs/cli_test.go
Normal file
17
tests/e2e/dao/restrictedMsgs/cli_test.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package restrictedMsgs
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/suite"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestRestrictedMsgsE2EDaoTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
cfg := network.LoaderDefaultConfig()
|
||||||
|
cfg.NumValidators = 3
|
||||||
|
suite.Run(t, NewRestrictedMsgsE2ESuite(cfg))
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package dao
|
package restrictedMsgs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
@ -2,6 +2,7 @@ package machine
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/planetmint/planetmint-go/testutil/network"
|
"github.com/planetmint/planetmint-go/testutil/network"
|
||||||
|
|
||||||
@ -9,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestE2EMachineTestSuite(t *testing.T) {
|
func TestE2EMachineTestSuite(t *testing.T) {
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
cfg := network.LoaderDefaultConfig()
|
cfg := network.LoaderDefaultConfig()
|
||||||
cfg.NumValidators = 3
|
cfg.NumValidators = 3
|
||||||
suite.Run(t, NewE2ETestSuite(cfg))
|
suite.Run(t, NewE2ETestSuite(cfg))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user