Skip to content

Commit

Permalink
make runtime tests sequencial
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjbrettj committed Apr 25, 2023
1 parent 389a6f1 commit 6981dd5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 87 deletions.
13 changes: 0 additions & 13 deletions lib/runtime/wasmer/exports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"github.com/ChainSafe/gossamer/lib/trie"
"github.com/ChainSafe/gossamer/lib/utils"
"github.com/ChainSafe/gossamer/pkg/scale"

"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -32,7 +31,6 @@ import (
var testKeyOwnershipProof types.OpaqueKeyOwnershipProof = types.OpaqueKeyOwnershipProof([]byte{64, 138, 252, 29, 127, 102, 189, 129, 207, 47, 157, 60, 17, 138, 194, 121, 139, 92, 176, 175, 224, 16, 185, 93, 175, 251, 224, 81, 209, 61, 0, 71}) //nolint:lll

func Test_Instance_Version(t *testing.T) {
t.Parallel()
type instanceVersioner interface {
Version() (version runtime.Version)
}
Expand Down Expand Up @@ -146,7 +144,6 @@ func Test_Instance_Version(t *testing.T) {
for name, testCase := range testCases {
testCase := testCase
t.Run(name, func(t *testing.T) {
t.Parallel()
instance := testCase.instanceBuilder(t)
version := instance.Version()
assert.Equal(t, testCase.expectedVersion, version)
Expand Down Expand Up @@ -281,7 +278,6 @@ func TestInstance_GrandpaAuthorities_PolkadotRuntime(t *testing.T) {
}

func TestInstance_BabeGenerateKeyOwnershipProof(t *testing.T) {
t.Parallel()
testCases := []struct {
name string
targetRuntime string
Expand All @@ -298,8 +294,6 @@ func TestInstance_BabeGenerateKeyOwnershipProof(t *testing.T) {
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.name, func(t *testing.T) {
t.Parallel()

tt := trie.NewEmptyTrie()
randomnessValue, err := common.HexToHash("0x01")
require.NoError(t, err)
Expand Down Expand Up @@ -329,7 +323,6 @@ func TestInstance_BabeGenerateKeyOwnershipProof(t *testing.T) {
}

func TestInstance_BabeSubmitReportEquivocationUnsignedExtrinsic(t *testing.T) {
t.Parallel()
testCases := []struct {
name string
targetRuntime string
Expand All @@ -346,8 +339,6 @@ func TestInstance_BabeSubmitReportEquivocationUnsignedExtrinsic(t *testing.T) {
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.name, func(t *testing.T) {
t.Parallel()

tt := trie.NewEmptyTrie()
rt := NewTestInstanceWithTrie(t, testCase.targetRuntime, tt)
authorityID := types.AuthorityID{1}
Expand Down Expand Up @@ -990,7 +981,6 @@ func newTrieFromPairs(t *testing.T, filename string) *trie.Trie {
}

func TestInstance_TransactionPaymentCallApi_QueryCallInfo(t *testing.T) {
t.Parallel()
ins := NewTestInstance(t, runtime.WESTEND_RUNTIME_v0929)
tests := []struct {
callHex string
Expand Down Expand Up @@ -1048,7 +1038,6 @@ func TestInstance_TransactionPaymentCallApi_QueryCallInfo(t *testing.T) {
}

func TestInstance_TransactionPaymentCallApi_QueryCallFeeDetails(t *testing.T) {
t.Parallel()
ins := NewTestInstance(t, runtime.WESTEND_RUNTIME_v0929)
tests := []struct {
callHex string
Expand Down Expand Up @@ -1109,7 +1098,6 @@ func TestInstance_TransactionPaymentCallApi_QueryCallFeeDetails(t *testing.T) {
}

func TestInstance_GrandpaGenerateKeyOwnershipProof(t *testing.T) {
t.Parallel()
instance := NewTestInstance(t, runtime.WESTEND_RUNTIME_v0929)
identity := common.MustHexToBytes("0x88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee")
identityPubKey, _ := ed25519.NewPublicKey(identity)
Expand All @@ -1122,7 +1110,6 @@ func TestInstance_GrandpaGenerateKeyOwnershipProof(t *testing.T) {
}

func TestInstance_GrandpaSubmitReportEquivocationUnsignedExtrinsic(t *testing.T) {
t.Parallel()
identity := common.MustHexToBytes("0x88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee")
identityPubKey, _ := ed25519.NewPublicKey(identity)
runtime := NewTestInstance(t, runtime.WESTEND_RUNTIME_v0929)
Expand Down
4 changes: 0 additions & 4 deletions lib/runtime/wasmer/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
)

func Test_NewTrieFromGenesis(t *testing.T) {
t.Parallel()

testCases := map[string]struct {
genesis genesis.Genesis
expectedKV map[string]string
Expand Down Expand Up @@ -64,8 +62,6 @@ func Test_NewTrieFromGenesis(t *testing.T) {
for name, testCase := range testCases {
testCase := testCase
t.Run(name, func(t *testing.T) {
t.Parallel()

tr, err := NewTrieFromGenesis(testCase.genesis)

require.ErrorIs(t, err, testCase.errSentinel)
Expand Down
Loading

0 comments on commit 6981dd5

Please sign in to comment.