Skip to content

Commit

Permalink
Update for golang 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Pan committed Nov 6, 2019
1 parent f75a03f commit 32abf5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/e2e-migration/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
const kubeconfigEnvVar = "KUBECONFIG"

func init() {
testing.Init()
// k8s.io/kubernetes/test/e2e/framework requires env KUBECONFIG to be set
// it does not fall back to defaults
if os.Getenv(kubeconfigEnvVar) == "" {
Expand Down
6 changes: 4 additions & 2 deletions tests/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ package e2e

import (
"fmt"
"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/reporters"
"log"
"os"
"path"
"path/filepath"
"testing"

"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/reporters"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

Expand All @@ -34,6 +35,7 @@ import (
const kubeconfigEnvVar = "KUBECONFIG"

func init() {
testing.Init()
// k8s.io/kubernetes/test/e2e/framework requires env KUBECONFIG to be set
// it does not fall back to defaults
if os.Getenv(kubeconfigEnvVar) == "" {
Expand Down

0 comments on commit 32abf5b

Please sign in to comment.