We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb5713 commit fd56d39Copy full SHA for fd56d39
cli/logout_test.go
@@ -3,6 +3,7 @@ package cli_test
3
import (
4
"os"
5
"regexp"
6
+ "runtime"
7
"testing"
8
9
"github.com/stretchr/testify/assert"
@@ -135,7 +136,12 @@ func TestLogout(t *testing.T) {
135
136
require.FileExists(t, string(config.Session()))
137
138
// Changing the permissions to throw error during deletion.
- err := os.Chmod(string(config), 0500)
139
+ var err error
140
+ if runtime.GOOS == "windows" {
141
+ err = os.Chmod(string(config), 0400)
142
+ } else {
143
+ err = os.Chmod(string(config), 0500)
144
+ }
145
require.NoError(t, err)
146
147
logoutChan := make(chan struct{})
0 commit comments