Skip to content

Commit

Permalink
properly fix vrfv2plus smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jan 2, 2024
1 parent 0875fce commit 501022b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions integration-tests/smoke/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func TestVRFv2Plus(t *testing.T) {
t.Fatal(err)
}

// network, err := actions.EthereumNetworkConfigFromConfig(l, &config)
// require.NoError(t, err, "Error building ethereum network config")
network, err := actions.EthereumNetworkConfigFromConfig(l, &config)
require.NoError(t, err, "Error building ethereum network config")

env, err := test_env.NewCLTestEnvBuilder().
WithTestInstance(t).
WithTestConfig(&config).
// WithPrivateEthereumNetwork(network).
WithPrivateEthereumNetwork(network).
WithGeth().
WithCLNodes(1).
WithFunding(big.NewFloat(*config.Common.ChainlinkNodeFunding)).
Expand Down
6 changes: 4 additions & 2 deletions integration-tests/testconfig/vrfv2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ func (c *Config) ApplyOverrides(from *Config) error {
}

func (c *Config) Validate() error {
if err := c.Common.Validate(); err != nil {
return err
if c.Common != nil {
if err := c.Common.Validate(); err != nil {
return err
}
}
if c.General != nil {
if err := c.General.Validate(); err != nil {
Expand Down
6 changes: 4 additions & 2 deletions integration-tests/testconfig/vrfv2plus/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ func (c *Config) ApplyOverrides(from *Config) error {
}

func (c *Config) Validate() error {
if err := c.Common.Validate(); err != nil {
return err
if c.Common != nil {
if err := c.Common.Validate(); err != nil {
return err
}
}
if c.General != nil {
if err := c.General.Validate(); err != nil {
Expand Down

0 comments on commit 501022b

Please sign in to comment.