* 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:
Jürgen Eckel 2024-03-08 11:39:30 +01:00
parent c3ea98941b
commit e1d8c1925f
No known key found for this signature in database
13 changed files with 94 additions and 45 deletions

View File

@ -2,6 +2,7 @@ package asset
import (
"testing"
"time"
"github.com/planetmint/planetmint-go/testutil/network"
@ -9,7 +10,7 @@ import (
)
func TestE2EAssetTestSuite(t *testing.T) {
t.Parallel()
time.Sleep(2 * time.Second)
cfg := network.LoaderDefaultConfig()
cfg.NumValidators = 3
suite.Run(t, NewE2ETestSuite(cfg))

View 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))
}

View File

@ -1,4 +1,4 @@
package dao
package basic
import (
"bufio"

View File

@ -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))
}

View File

@ -1,4 +1,4 @@
package dao
package distribution
import (
"math"

View 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))
}

View 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))
}

View File

@ -1,4 +1,4 @@
package dao
package gasConsumption
import (
"bufio"

View 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))
}

View File

@ -1,4 +1,4 @@
package dao
package pop
import (
"bufio"

View 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))
}

View File

@ -1,4 +1,4 @@
package dao
package restrictedMsgs
import (
sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -2,6 +2,7 @@ package machine
import (
"testing"
"time"
"github.com/planetmint/planetmint-go/testutil/network"
@ -9,6 +10,7 @@ import (
)
func TestE2EMachineTestSuite(t *testing.T) {
time.Sleep(2 * time.Second)
cfg := network.LoaderDefaultConfig()
cfg.NumValidators = 3
suite.Run(t, NewE2ETestSuite(cfg))