Skip to content

Commit

Permalink
fix windows test error
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Aug 22, 2023
1 parent aca52ff commit 0a044a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/credential/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ import (
func TestNewStoreError(t *testing.T) {
tmpDir := t.TempDir()
filename := path.Join(tmpDir, "testfile.txt")
_, err := os.Create(filename)
file, err := os.Create(filename)
if err != nil {
t.Errorf("error: cannot create file : %v", err)
}
defer file.Close()

err = os.Chmod(filename, 000)
if err != nil {
t.Errorf("error: cannot change file permissions: %v", err)
Expand Down

0 comments on commit 0a044a2

Please sign in to comment.