Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeeperBlockTimeTest ¶
type KeeperBlockTimeTest struct {
Inputs KeeperBlockTimeTestInputs
TestReporter testreporters.KeeperBlockTimeTestReporter
// contains filtered or unexported fields
}
KeeperBlockTimeTest builds a test to check that chainlink nodes are able to upkeep a specified amount of Upkeep contracts within a certain block time
func NewKeeperBlockTimeTest ¶
func NewKeeperBlockTimeTest(inputs KeeperBlockTimeTestInputs) *KeeperBlockTimeTest
func (*KeeperBlockTimeTest) Run ¶
func (k *KeeperBlockTimeTest) Run()
func (*KeeperBlockTimeTest) Setup ¶
func (k *KeeperBlockTimeTest) Setup()
type KeeperBlockTimeTestInputs ¶
type KeeperBlockTimeTestInputs struct {
NumberOfContracts int // Number of upkeep contracts
Timeout time.Duration // Timeout for the test
BlockRange int64
BlockInterval int64
ContractDeployer contracts.ContractDeployer
ChainlinkNodes []client.Chainlink
Networks *client.Networks
LinkTokenContract contracts.LinkToken
}
KeeperBlockTimeTestInputs are all the required inputs for a Keeper Block Time Test
type OCRSoakTest ¶ added in v1.0.53
type OCRSoakTest struct {
Inputs *OCRSoakTestInputs
TestReporter testreporters.OCRSoakTestReporter
// contains filtered or unexported fields
}
OCRSoakTest defines a typical OCR soak test
func NewOCRSoakTest ¶ added in v1.0.53
func NewOCRSoakTest(inputs *OCRSoakTestInputs) *OCRSoakTest
NewOCRSoakTest creates a new OCR soak test to setup and run
func (*OCRSoakTest) Setup ¶ added in v1.0.53
func (t *OCRSoakTest) Setup(env *environment.Environment)
Setup sets up the test environment, deploying contracts and funding chainlink nodes
type OCRSoakTestInputs ¶ added in v1.0.53
type OCRSoakTestInputs struct {
TestDuration time.Duration // How long to run the test for (assuming things pass)
NumberOfContracts int // Number of OCR contracts to launch
ChainlinkNodeFunding *big.Float // Amount of ETH to fund each chainlink node with
RoundTimeout time.Duration // How long to wait for a round to update before timing out
StartingAdapterValue int
}
OCRSoakTestInputs define required inputs to run an OCR soak test
Click to show internal directories.
Click to hide internal directories.