Skip to content

Commit

Permalink
Fixing smoek issues
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 7, 2024
1 parent 27637fb commit 4d9d54f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
14 changes: 8 additions & 6 deletions integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ func TestSolanaOCRV2Smoke(t *testing.T) {
require.NoError(t, err)
state.Gauntlet = sg

t.Cleanup(func() {
err = state.Common.Env.Shutdown()
if err != nil {
log.Err(err)
}
})
if *config.Common.InsideK8s {
t.Cleanup(func() {
err = state.Common.Env.Shutdown()
if err != nil {
log.Err(err)
}
})
}

state.SetupClients()
require.NoError(t, err)
Expand Down
16 changes: 10 additions & 6 deletions integration-tests/testconfig/ocr2/ocr2.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ func (o *Config) Validate() error {
return errors.New("Only one can be enabled either soak or smoke")
}

err = o.Smoke.Validate()
if err != nil {
return err
if *o.Smoke.Enabled {
err = o.Smoke.Validate()
if err != nil {
return err
}
}

err = o.Soak.Validate()
if err != nil {
return err
if *o.Soak.Enabled {
err = o.Soak.Validate()
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit 4d9d54f

Please sign in to comment.