Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Dec 11, 2023
1 parent c9aa8f1 commit 6fb5ac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,12 @@ func TestManager_Install(t *testing.T) {
if err != nil {
t.Fatalf("failed to create %s: %v", newPluginFilePath, err)
}
if err := pluginFile.Close(); err != nil {
t.Fatalf("failed to close %s: %v", newPluginFilePath, err)
}
if err := pluginFile.Chmod(0700); err != nil {
t.Fatalf("failed to chmod %s: %v", newPluginFilePath, err)
}
if err := pluginFile.Close(); err != nil {
t.Fatalf("failed to close %s: %v", newPluginFilePath, err)
}
pluginLibFile, err := os.Create(newPluginLibPath)
if err != nil {
t.Fatalf("failed to create %s: %v", newPluginLibPath, err)
Expand Down

0 comments on commit 6fb5ac6

Please sign in to comment.