Skip to content

Commit c9d696b

Browse files
authored
Revert "chore(e2e): rewrite e2e config init" (#13190)
Reverts #13165 need to figure out why it did not work in KM
1 parent 52a3858 commit c9d696b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/test/ginkgo.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/kumahq/kuma/pkg/core/plugins"
1919
core_apis "github.com/kumahq/kuma/pkg/core/resources/apis"
2020
"github.com/kumahq/kuma/pkg/plugins/policies"
21-
"github.com/kumahq/kuma/test/framework"
2221
)
2322

2423
// RunSpecs wraps ginkgo+gomega test suite initialization.
@@ -33,7 +32,6 @@ func RunSpecs(t *testing.T, description string) {
3332
}
3433

3534
func RunE2ESpecs(t *testing.T, description string) {
36-
framework.Init()
3735
plugins.InitAll(core_apis.NameToModule)
3836
plugins.InitAll(policies.NameToModule)
3937
gomega.SetDefaultConsistentlyDuration(time.Second * 5)

test/framework/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ var defaultConf = E2eConfig{
263263
DumpOnSuccess: false,
264264
}
265265

266-
func Init() {
266+
func init() {
267267
Config = defaultConf
268-
if err := config.Load("", &Config); err != nil {
268+
if err := config.Load(os.Getenv("E2E_CONFIG_FILE"), &Config); err != nil {
269269
panic(err)
270270
}
271271

0 commit comments

Comments
 (0)