Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: builder
namespace: stolostron
tag: go1.23-linux
tag: go1.24-linux
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module open-cluster-management.io/policy-generator-plugin

go 1.23.0
go 1.24.0

require (
github.com/google/go-cmp v0.6.0
Expand Down
11 changes: 2 additions & 9 deletions internal/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1564,11 +1564,7 @@ func TestVerifyManifestPath(t *testing.T) {
}

defer func() {
err := os.Chdir(cwd)
if err != nil {
// panic since this could affect other tests that haven't yet run
panic(fmt.Sprintf("Couldn't go back to the original working directory: %v", err))
}
t.Chdir(cwd)
}()

// Set up directory structure, with 'workingdir' as target directory:
Expand Down Expand Up @@ -1606,10 +1602,7 @@ func TestVerifyManifestPath(t *testing.T) {
t.Fatalf("Failed to write %s", otherManifestPath)
}

err = os.Chdir(workingDir)
if err != nil {
t.Fatalf("Failed to change the working directory to %s: %v", workingDir, err)
}
t.Chdir(workingDir)

grandParentDir := path.Join("..", "..")
relOtherManifestPath := path.Join("..", "otherdir", "configmap.yaml")
Expand Down