Skip to content

Commit

Permalink
Replace syscall with unix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Jan 11, 2024
1 parent 88295b2 commit 8a1532d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package gosnowflake

import (
"fmt"
"golang.org/x/sys/unix"
"os"
"path"
"runtime"
"strings"
"syscall"
"testing"
)

Expand Down Expand Up @@ -324,8 +324,8 @@ func TestConfigPermissions(t *testing.T) {
{filePerm: 0710, isValid: true},
}

oldMask := syscall.Umask(0000)
defer syscall.Umask(oldMask)
oldMask := unix.Umask(0000)
defer unix.Umask(oldMask)

for _, tc := range testCases {
t.Run(fmt.Sprintf("0%o", tc.filePerm), func(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions easy_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package gosnowflake
import (
"context"
"fmt"
"golang.org/x/sys/unix"
"os"
"path"
"runtime"
"strings"
"syscall"
"testing"
)

Expand Down Expand Up @@ -181,8 +181,8 @@ func TestLogDirectoryPermissions(t *testing.T) {
{dirPerm: 0710, limitedToUser: false},
}

oldMask := syscall.Umask(0000)
defer syscall.Umask(oldMask)
oldMask := unix.Umask(0000)
defer unix.Umask(oldMask)

for _, tc := range testCases {
t.Run(fmt.Sprintf("0%o", tc.dirPerm), func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require (
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/sirupsen/logrus v1.9.0
golang.org/x/crypto v0.17.0
golang.org/x/sys v0.15.0
)

require (
Expand Down Expand Up @@ -49,7 +50,6 @@ require (
golang.org/x/mod v0.13.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.14.0 // indirect
Expand Down

0 comments on commit 8a1532d

Please sign in to comment.