Skip to content

Commit

Permalink
Uses Common Config to Fund Tests (#13465)
Browse files Browse the repository at this point in the history
* Uses config to fund

* More cash
  • Loading branch information
kalverra authored Jun 7, 2024
1 parent b09c14d commit a4466c6
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 27 deletions.
2 changes: 1 addition & 1 deletion integration-tests/smoke/forwarder_ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestForwarderOCRBasic(t *testing.T) {
WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig).
WithMockAdapter().
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/forwarders_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestForwarderOCR2Basic(t *testing.T) {
WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig).
WithMockAdapter().
WithCLNodes(6).
WithFunding(big.NewFloat(.1)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ func setupKeeperTest(l zerolog.Logger, t *testing.T, config *tc.TestConfig) (
WithTestConfig(config).
WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig).
WithCLNodes(5).
WithFunding(big.NewFloat(.5)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func prepareORCv2SmokeTestEnv(t *testing.T, testData ocr2test, l zerolog.Logger,
WithMockAdapter().
WithCLNodes(clNodeCount).
WithCLNodeOptions(test_env.WithNodeEnvVars(testData.env)).
WithFunding(big.NewFloat(.1)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func prepareORCv1SmokeTestEnv(t *testing.T, l zerolog.Logger, firstRoundResult i
WithPrivateEthereumNetwork(network.EthereumNetworkConfig).
WithMockAdapter().
WithCLNodes(6).
WithFunding(big.NewFloat(.5)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/runlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestRunLogBasic(t *testing.T) {
WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig).
WithMockAdapter().
WithCLNodes(1).
WithFunding(big.NewFloat(.5)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/smoke/vrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func prepareVRFtestEnv(t *testing.T, l zerolog.Logger) (*test_env.CLClusterTestE
WithTestConfig(&config).
WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig).
WithCLNodes(1).
WithFunding(big.NewFloat(.5)).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
WithStandardCleanup().
WithSeth().
Build()
Expand Down
43 changes: 23 additions & 20 deletions integration-tests/testconfig/default.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
[Logging]
test_log_collect=false
test_log_collect = false

[Logging.LogStream]
log_targets=["file"]
log_producer_timeout="10s"
log_producer_retry_limit=10
log_targets = ["file"]
log_producer_timeout = "10s"
log_producer_retry_limit = 10

[ChainlinkImage]
postgres_version="15.6"
image="public.ecr.aws/chainlink/chainlink"
version="2.9.1"
postgres_version = "15.6"
image = "public.ecr.aws/chainlink/chainlink"
version = "2.12.0"

[Common]
chainlink_node_funding = 0.5

[Network]
selected_networks=["simulated"]
selected_networks = ["simulated"]

[PrivateEthereumNetwork]
ethereum_version="eth1"
execution_layer="geth"
ethereum_version = "eth1"
execution_layer = "geth"

[PrivateEthereumNetwork.EthereumChainConfig]
seconds_per_slot=3
slots_per_epoch=2
genesis_delay=15
validator_count=4
chain_id=1337
addresses_to_fund=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]
seconds_per_slot = 3
slots_per_epoch = 2
genesis_delay = 15
validator_count = 4
chain_id = 1337
addresses_to_fund = ["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]

[PrivateEthereumNetwork.EthereumChainConfig.HardForkEpochs]
Deneb=500
Deneb = 500

[NodeConfig]
BaseConfigTOML = """
Expand Down Expand Up @@ -144,9 +147,9 @@ gas_price_estimation_tx_priority = "standard"

# fallback values
transfer_gas_fee = 21_000
gas_price = 150_000_000_000 #150 gwei
gas_price = 150_000_000_000 #150 gwei
gas_fee_cap = 150_000_000_000 #150 gwei
gas_tip_cap = 50_000_000_000 #50 gwei
gas_tip_cap = 50_000_000_000 #50 gwei

[[Seth.networks]]
name = "Anvil"
Expand Down Expand Up @@ -405,4 +408,4 @@ gas_price_estimation_enabled = true
# how many last blocks to use, when estimating gas for a transaction
gas_price_estimation_blocks = 100
# priority of the transaction, can be "fast", "standard" or "slow" (the higher the priority, the higher adjustment factor will be used for gas estimation) [default: "standard"]
gas_price_estimation_tx_priority = "standard"
gas_price_estimation_tx_priority = "standard"

0 comments on commit a4466c6

Please sign in to comment.