Skip to content

Commit

Permalink
update testing framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Despire committed Nov 14, 2024
1 parent 3832a64 commit 13b7a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/testing-framework/claudie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func testClaudie(ctx context.Context) error {

log.Info().Msgf("Starting test set: %s", path)
err, cleanup := processTestSet(ctx, path, false, manager, testLonghornDeployment)
if err == nil || errors.Is(err, errInterrupt) {
if err == nil || errors.Is(err, errInterrupt) || errors.Is(err, context.Canceled) {
if err := cleanup(); err != nil {
log.Err(err).Msgf("Error in cleaning up test set %s", path)
}
Expand All @@ -141,7 +141,7 @@ func testClaudie(ctx context.Context) error {

log.Info().Msgf("Starting test set: %s", path)
err, cleanup := processTestSet(ctx, path, true, manager, testLonghornDeployment)
if err == nil || errors.Is(err, errInterrupt) {
if err == nil || errors.Is(err, errInterrupt) || errors.Is(err, context.Canceled) {
if err := cleanup(); err != nil {
log.Err(err).Msgf("Error in cleaning up test set %s", path)
}
Expand Down Expand Up @@ -173,7 +173,7 @@ func testClaudie(ctx context.Context) error {
return testAutoscaler(ctx, c)
},
)
if err == nil || errors.Is(err, errInterrupt) {
if err == nil || errors.Is(err, errInterrupt) || errors.Is(err, context.Canceled) {
if err := cleanup(); err != nil {
log.Err(err).Msgf("Error in cleaning up test set %s", path)
}
Expand Down

0 comments on commit 13b7a47

Please sign in to comment.