Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jul 11, 2024
1 parent 2e9e0ac commit 46d10f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,6 @@ Load Config:
a.SetMercuryCredentialName("cred1")
}

if *conf.UseLogBufferV1 {
a.SetUseLogBufferV1(true)
}

startTimeTestSetup := time.Now()
l.Info().Str("START_TIME", startTimeTestSetup.String()).Msg("Test setup started")

Expand Down
4 changes: 0 additions & 4 deletions integration-tests/testconfig/automation/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ type AutomationConfig struct {
PluginConfig *PluginConfig `toml:"PluginConfig"`
PublicConfig *PublicConfig `toml:"PublicConfig"`
RegistrySettings *RegistrySettings `toml:"RegistrySettings"`
UseLogBufferV1 *bool `toml:"use_log_buffer_v1"`
}

func (c *AutomationConfig) Validate() error {
Expand All @@ -173,9 +172,6 @@ func (c *AutomationConfig) Validate() error {
if err := c.RegistrySettings.Validate(); err != nil {

Check failure on line 172 in integration-tests/testconfig/automation/config.go

View workflow job for this annotation

GitHub Actions / Build and Lint integration-tests

if-return: redundant if ...; err != nil check, just return error instead. (revive)
return err
}
if c.UseLogBufferV1 == nil {
return errors.New("use_log_buffer_v1 must be set")
}
return nil
}

Expand Down

0 comments on commit 46d10f0

Please sign in to comment.