phantomjinx commented on code in PR #3382: URL: https://github.com/apache/camel-k/pull/3382#discussion_r904685045
########## e2e/support/test_support.go: ########## @@ -1151,12 +1234,12 @@ func Platform(ns string) func() *v1.IntegrationPlatform { continue } if pl != nil { - panic("multiple primary integration platforms found in namespace " + ns) + failTest(fmt.Errorf("multiple primary integration platforms found in namespace " + ns)) } pl = &p } if pl == nil { - panic(fmt.Sprintf("multiple integration platforms found in namespace %q but no one is primary", ns)) + failTest(fmt.Errorf(fmt.Sprintf("multiple integration platforms found in namespace %q but no one is primary", ns))) Review Comment: Done ########## e2e/support/test_support.go: ########## @@ -1151,12 +1234,12 @@ func Platform(ns string) func() *v1.IntegrationPlatform { continue } if pl != nil { - panic("multiple primary integration platforms found in namespace " + ns) + failTest(fmt.Errorf("multiple primary integration platforms found in namespace " + ns)) Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org