Skip to content

Commit 492db6a

Browse files
committed
fix file mode on windows for cleanup
1 parent fd56d39 commit 492db6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/logout_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ func TestLogout(t *testing.T) {
162162
<-logoutChan
163163

164164
// Setting the permissions back for cleanup.
165-
err = os.Chmod(string(config), 0700)
165+
if runtime.GOOS == "windows" {
166+
err = os.Chmod(string(config), 0600)
167+
} else {
168+
err = os.Chmod(string(config), 0700)
169+
}
166170
require.NoError(t, err)
167171
})
168172
}

0 commit comments

Comments
 (0)