diff --git a/test/e2e/framework/flake_reporting_util.go b/test/e2e/framework/flake_reporting_util.go index 3527f071f43..36d9baa98f0 100644 --- a/test/e2e/framework/flake_reporting_util.go +++ b/test/e2e/framework/flake_reporting_util.go @@ -53,7 +53,7 @@ func (f *FlakeReport) RecordFlakeIfError(err error, optionalDescription ...inter return } msg := fmt.Sprintf("Unexpected error occurred: %v", err) - desc := buildDescription(optionalDescription) + desc := buildDescription(optionalDescription...) if desc != "" { msg = fmt.Sprintf("%v (Description: %v)", msg, desc) } diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 5d0ae78de9a..d21ce41af75 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -550,7 +550,7 @@ func (f *Framework) CreateNamespace(baseName string, labels map[string]string) ( // RecordFlakeIfError records flakeness info if error happens. // NOTE: This function is not used at any places yet, but we are in progress for https://github.com/kubernetes/kubernetes/issues/66239 which requires this. Please don't remove this. func (f *Framework) RecordFlakeIfError(err error, optionalDescription ...interface{}) { - f.flakeReport.RecordFlakeIfError(err, optionalDescription) + f.flakeReport.RecordFlakeIfError(err, optionalDescription...) } // AddNamespacesToDelete adds one or more namespaces to be deleted when the test