mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-08-30 22:06:41 -04:00
Merge pull request #225 from bitgestalt/fix_test_empty_name
Fix TestLookupEmptyNameFails
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func TestLookupValidSid(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLookupEmptyNameFails(t *testing.T) {
|
||||
_, err := LookupSidByName(".\\weoifjdsklfj")
|
||||
_, err := LookupSidByName("")
|
||||
aerr, ok := err.(*AccountLookupError)
|
||||
if !ok || aerr.Err != cERROR_NONE_MAPPED {
|
||||
t.Fatalf("expected AccountLookupError with ERROR_NONE_MAPPED, got %s", err)
|
||||
|
||||
Reference in New Issue
Block a user