Skip to content

Commit

Permalink
ci: Use temporary directory for unit tests
Browse files Browse the repository at this point in the history
remove if err

Signed-off-by: Mayank Pal <[email protected]>
  • Loading branch information
mayankpall committed May 21, 2024
1 parent 3e56b34 commit 81055a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/rbd/nodeserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ func TestReadAffinity_GetReadAffinityMapOptions(t *testing.T) {
}
tmpConfPath := t.TempDir() + "/ceph-csi.json"

if err != nil {
t.Errorf("failed to create directory %s: %v", "/etc/ceph-csi-config", err)
}
err = os.WriteFile(tmpConfPath, csiConfigFileContent, 0o600)
if err != nil {
t.Errorf("failed to write %s file content: %v", util.CsiConfigFile, err)
Expand Down

0 comments on commit 81055a6

Please sign in to comment.