Skip to content

Commit

Permalink
fixing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed May 3, 2023
1 parent 18dc486 commit 2f93bce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 62 deletions.
54 changes: 0 additions & 54 deletions main.go

This file was deleted.

13 changes: 5 additions & 8 deletions permission/permission_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
//go:build windows || linux

package permissionutil

import (
"testing"

osutils "github.com/projectdiscovery/utils/os"
"github.com/stretchr/testify/require"
)

func TestIsRoot(t *testing.T) {
t.Run("windows - linux", func(t *testing.T) {
isRoot, err := checkCurrentUserRoot()
if osutils.IsWindows() || osutils.IsLinux() {
require.Nil(t, err)
require.NotNil(t, isRoot)
}
})
isRoot, err := checkCurrentUserRoot()
require.Nil(t, err)
require.NotNil(t, isRoot)
}

0 comments on commit 2f93bce

Please sign in to comment.