Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Mikheykin <[email protected]>
  • Loading branch information
diafour authored Nov 1, 2024
1 parent 298855f commit 55db7c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/ginkgoutil/decorators.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ func DecoratorsFromEnv(decorators ...interface{}) []interface{} {
out := make([]interface{}, 0)

for _, decorator := range decorators {
switch decorator.(type) {
switch v := decorator.(type) {
case EnvSwitchable:
gdeco := decorator.(EnvSwitchable).Decorator()
gdeco := v.Decorator()
if gdeco != nil {
out = append(out, gdeco)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestTests(t *testing.T) {
RegisterFailHandler(Fail)
fmt.Fprintf(GinkgoWriter, "Starting test suite\n")
RunSpecs(t, "Tests")
if (ginkgoutil.FailureBehaviourEnvSwitcher{}).IsStopOnFailure() {
if !(ginkgoutil.FailureBehaviourEnvSwitcher{}).IsStopOnFailure() {
Cleanup()
}
}
Expand Down

0 comments on commit 55db7c6

Please sign in to comment.