From 43ffb3375342fa5d5c8febeb170c67a2b71ffdb8 Mon Sep 17 00:00:00 2001 From: Ilja Pavlovs Date: Fri, 23 Feb 2024 04:00:41 +0200 Subject: [PATCH] VRF-881: fixing e2e tests --- integration-tests/testconfig/vrfv2/config.go | 3 +-- integration-tests/testconfig/vrfv2plus/config.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/integration-tests/testconfig/vrfv2/config.go b/integration-tests/testconfig/vrfv2/config.go index b631e811a77..d930a89f6c7 100644 --- a/integration-tests/testconfig/vrfv2/config.go +++ b/integration-tests/testconfig/vrfv2/config.go @@ -25,12 +25,11 @@ func (c *Config) Validate() error { return err } } - if c.ExistingEnvConfig != nil { + if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv == true { if err := c.ExistingEnvConfig.Validate(); err != nil { return err } } - return nil } diff --git a/integration-tests/testconfig/vrfv2plus/config.go b/integration-tests/testconfig/vrfv2plus/config.go index affecd64f34..54a151a53c8 100644 --- a/integration-tests/testconfig/vrfv2plus/config.go +++ b/integration-tests/testconfig/vrfv2plus/config.go @@ -31,7 +31,7 @@ func (c *Config) Validate() error { return err } } - if c.ExistingEnvConfig != nil { + if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv == true { if err := c.ExistingEnvConfig.Validate(); err != nil { return err }