Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Oct 2, 2024
1 parent c0a15d7 commit ebcc7ac
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions pkg/extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ func NewExtension(product, kind, name string) *Extension {
func (e *Extension) GetSuite(name string) (*Suite, error) {
var suite *Suite

// Find first matching suite or parent suite
for _, s := range e.Suites {
if s.Name == name {
suite = &s
break
}
// FIXME: handle parents, or just leave that as an origin orchestrated thing?
}

if suite == nil {
Expand Down
17 changes: 0 additions & 17 deletions pkg/extension/extensiontests/result.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
package extensiontests

import "fmt"

func (results ExtensionTestResults) Walk(walkFn func(*ExtensionTestResult)) {
for i := range results {
walkFn(results[i])
}
}

func (results ExtensionTestResults) CheckOverallResult() error {
failed := 0

results.Walk(func(result *ExtensionTestResult) {
if result.Result == ResultFailed && result.Lifecycle == LifecycleBlocking {
failed++
}
})

if failed > 0 {
return fmt.Errorf("%d tests failed", failed)
}
return nil
}
1 change: 0 additions & 1 deletion pkg/extension/extensiontests/time.go

This file was deleted.

0 comments on commit ebcc7ac

Please sign in to comment.