Skip to content

Commit

Permalink
chore(insvc): nit rename const for test crds foldern
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
  • Loading branch information
Al-Pragliola committed Nov 25, 2024
1 parent b1362b6 commit 7e39107
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/inferenceservice-controller/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
accessToken = ""
kserveVersion = "v0.12.1"
kserveCRDParamUrl = "https://raw.githubusercontent.com/kserve/kserve/refs/tags/%s/config/crd/serving.kserve.io_inferenceservices.yaml"
kserveCRDLocalPath = "./testdata/crd"
testCRDLocalPath = "./testdata/crd"
)

var (
Expand Down Expand Up @@ -77,7 +77,7 @@ var _ = BeforeSuite(func() {
// Download CRDs
crdUrl := fmt.Sprintf(kserveCRDParamUrl, kserveVersion)

crdPath := filepath.Join(kserveCRDLocalPath, "serving.kserve.io_inferenceservices.yaml")
crdPath := filepath.Join(testCRDLocalPath, "serving.kserve.io_inferenceservices.yaml")

if err := os.MkdirAll(filepath.Dir(crdPath), 0755); err != nil {
Fail(err.Error())
Expand Down Expand Up @@ -191,7 +191,7 @@ var _ = AfterSuite(func() {
mrMockServer.Close()

// Clean up CRDs
err = os.RemoveAll(kserveCRDLocalPath)
err = os.RemoveAll(testCRDLocalPath)
Expect(err).NotTo(HaveOccurred())

})
Expand Down

0 comments on commit 7e39107

Please sign in to comment.