33 lines
681 B
Go
33 lines
681 B
Go
package base_test
|
|
|
|
import (
|
|
"math/rand"
|
|
"testing"
|
|
|
|
testutils "github.com/skip-mev/block-sdk/testutils"
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type BaseTestSuite struct {
|
|
suite.Suite
|
|
|
|
encodingConfig testutils.EncodingConfig
|
|
random *rand.Rand
|
|
accounts []testutils.Account
|
|
gasTokenDenom string
|
|
}
|
|
|
|
func TestBaseTestSuite(t *testing.T) {
|
|
suite.Run(t, new(BaseTestSuite))
|
|
}
|
|
|
|
func (s *BaseTestSuite) SetupTest() {
|
|
// Set up basic TX encoding config.
|
|
s.encodingConfig = testutils.CreateTestEncodingConfig()
|
|
|
|
// Create a few random accounts
|
|
s.random = rand.New(rand.NewSource(1))
|
|
s.accounts = testutils.RandomAccounts(s.random, 5)
|
|
s.gasTokenDenom = "stake"
|
|
}
|