Skip to content

Commit

Permalink
Fix test error caused by crds dir changed (kubeflow#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougangliu authored and k8s-ci-robot committed May 16, 2019
1 parent bf3c286 commit 667bcef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/serving/v1alpha1/v1alpha1_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var c client.Client

func TestMain(m *testing.M) {
t := &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "..", "config", "crds")},
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "..", "config", "default", "crds")},
}

err := SchemeBuilder.AddToScheme(scheme.Scheme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var cfg *rest.Config

func TestMain(m *testing.M) {
t := &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "crds"),
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "default", "crds"),
filepath.Join("..", "..", "..", "test", "crds")},
}
err := apis.AddToScheme(scheme.Scheme)
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/ksvc/ksvc_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var c client.Client

func TestMain(m *testing.M) {
t := &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "crds"),
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "default", "crds"),
filepath.Join("..", "..", "..", "test", "crds")},
}

Expand Down
2 changes: 2 additions & 0 deletions prow_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ workflows:
include_dirs:
- pkg/*
- cmd/*
- config/*
- test/*
- Dockerfile
- python/*
Expand All @@ -24,6 +25,7 @@ workflows:
include_dirs:
- pkg/*
- cmd/*
- config/*
- test/*
- Dockerfile
- python/*
Expand Down

0 comments on commit 667bcef

Please sign in to comment.