Skip to content

Commit

Permalink
Soak Tests - Remove Namespace if fund return is successful (#14155)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier authored Aug 21, 2024
1 parent 0cbad1b commit ec183b5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration-tests/benchmark/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ func TestAutomationBenchmark(t *testing.T) {
t.Cleanup(func() {
if err = actions.TeardownRemoteSuite(keeperBenchmarkTest.TearDownVals(t)); err != nil {
l.Error().Err(err).Msg("Error when tearing down remote suite")
} else {
err := testEnvironment.Client.RemoveNamespace(testEnvironment.Cfg.Namespace)
if err != nil {
l.Error().Err(err).Msg("Error removing namespace")
}
}
})
keeperBenchmarkTest.Setup(testEnvironment, &config)
Expand Down
5 changes: 5 additions & 0 deletions integration-tests/soak/forwarder_ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ func executeForwarderOCRSoakTest(t *testing.T, config *tc.TestConfig) {
t.Cleanup(func() {
if err := actions.TeardownRemoteSuite(ocrSoakTest.TearDownVals(t)); err != nil {
l.Error().Err(err).Msg("Error tearing down environment")
} else {
err := ocrSoakTest.Environment().Client.RemoveNamespace(ocrSoakTest.Environment().Cfg.Namespace)
if err != nil {
l.Error().Err(err).Msg("Error removing namespace")
}
}
})
ocrSoakTest.Setup(config)
Expand Down
5 changes: 5 additions & 0 deletions integration-tests/soak/ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ func executeOCRSoakTest(t *testing.T, test *testsetups.OCRSoakTest, config *tc.T
t.Cleanup(func() {
if err := actions.TeardownRemoteSuite(test.TearDownVals(t)); err != nil {
l.Error().Err(err).Msg("Error tearing down environment")
} else {
err := test.Environment().Client.RemoveNamespace(test.Environment().Cfg.Namespace)
if err != nil {
l.Error().Err(err).Msg("Error removing namespace")
}
}
})
if test.Interrupted() {
Expand Down

0 comments on commit ec183b5

Please sign in to comment.