pinned the chain id for the unit tests

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-07-28 13:47:25 +02:00
parent 0fb349354f
commit 1b1bd2f790
No known key found for this signature in database
3 changed files with 8 additions and 12 deletions

View File

@ -46490,9 +46490,8 @@ paths:
type: string type: string
ticker: ticker:
type: string type: string
issued: reissue:
type: string type: boolean
format: uint64
amount: amount:
type: string type: string
format: uint64 format: uint64
@ -75335,9 +75334,8 @@ definitions:
type: string type: string
ticker: ticker:
type: string type: string
issued: reissue:
type: string type: boolean
format: uint64
amount: amount:
type: string type: string
format: uint64 format: uint64
@ -75387,9 +75385,8 @@ definitions:
type: string type: string
ticker: ticker:
type: string type: string
issued: reissue:
type: string type: boolean
format: uint64
amount: amount:
type: string type: string
format: uint64 format: uint64

2
go.mod
View File

@ -10,6 +10,7 @@ require (
github.com/cometbft/cometbft v0.37.2 github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.7.0 github.com/cometbft/cometbft-db v0.7.0
github.com/cosmos/cosmos-sdk v0.47.3 github.com/cosmos/cosmos-sdk v0.47.3
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/gogoproto v1.4.10 github.com/cosmos/gogoproto v1.4.10
github.com/cosmos/ibc-go/v7 v7.1.0 github.com/cosmos/ibc-go/v7 v7.1.0
github.com/golang/mock v1.6.0 github.com/golang/mock v1.6.0
@ -58,7 +59,6 @@ require (
github.com/confio/ics23/go v0.9.0 // indirect github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v0.20.0 // indirect github.com/cosmos/iavl v0.20.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect

View File

@ -6,7 +6,6 @@ import (
"time" "time"
tmdb "github.com/cometbft/cometbft-db" tmdb "github.com/cometbft/cometbft-db"
tmrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/crypto/keyring"
@ -51,7 +50,7 @@ func New(t *testing.T, configs ...Config) *Network {
func DefaultConfig() network.Config { func DefaultConfig() network.Config {
var ( var (
encoding = app.MakeEncodingConfig() encoding = app.MakeEncodingConfig()
chainID = "chain-" + tmrand.NewRand().Str(6) chainID = "chain-foobarbaz"
) )
return network.Config{ return network.Config{
Codec: encoding.Marshaler, Codec: encoding.Marshaler,