Skip to content

Commit

Permalink
fix: Fix test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <ce.gao@outlook.com>
  • Loading branch information
gaocegege committed Nov 30, 2021
1 parent 95999cf commit 892a85d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller.v1/pytorch/pytorchjob_controller_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"testing"

v1 "github.com/kubeflow/training-operator/pkg/apis/pytorch/v1"
"github.com/kubeflow/training-operator/pkg/config"

. "github.com/onsi/ginkgo"
"github.com/onsi/gomega"
Expand Down Expand Up @@ -70,6 +71,10 @@ var _ = BeforeSuite(func() {
err = v1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

// Set default config.
config.Config.PyTorchInitContainerImage = config.PyTorchInitContainerImageDefault
config.Config.PyTorchInitContainerTemplateFile = config.PyTorchInitContainerTemplateFileDefault

//+kubebuilder:scaffold:scheme

testK8sClient, err = client.New(cfg, client.Options{Scheme: scheme.Scheme})
Expand Down

0 comments on commit 892a85d

Please sign in to comment.