File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package util
1818
1919import (
2020 "os"
21+ "path/filepath"
2122 "testing"
2223
2324 . "github.com/onsi/gomega"
@@ -50,7 +51,7 @@ func TestTempPathForObj(t *testing.T) {
5051 }{
5152 {
5253 name : "default" ,
53- want : os .TempDir () + "/ secret-default-foo-" ,
54+ want : filepath . Join ( os .TempDir (), " secret-default-foo-") ,
5455 },
5556 {
5657 name : "with directory" ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import (
6060
6161 "github.com/fluxcd/pkg/gittestserver"
6262 "github.com/fluxcd/pkg/runtime/testenv"
63- sourcev1 "github.com/fluxcd/source-controller/api/v1beta1 "
63+ sourcev1 "github.com/fluxcd/source-controller/api/v1beta2 "
6464 "github.com/fluxcd/source-controller/controllers"
6565)
6666
@@ -149,7 +149,6 @@ func ensureDependencies() error {
149149 startEnvServer (func (m manager.Manager ) {
150150 utilruntime .Must ((& controllers.GitRepositoryReconciler {
151151 Client : m .GetClient (),
152- Scheme : scheme .Scheme ,
153152 Storage : storage ,
154153 }).SetupWithManager (m ))
155154 })
Original file line number Diff line number Diff line change 11module github.com/fluxcd/source-controller/tests/fuzz
22
33go 1.17
4+
5+ replace github.com/fluxcd/kustomize-controller/api => ../../api
6+
7+ replace github.com/fluxcd/kustomize-controller => ../../
You can’t perform that action at this time.
0 commit comments