Merge pull request #225 from bitgestalt/fix_test_empty_name

Fix TestLookupEmptyNameFails
This commit is contained in:
Kathryn Baldauf authored and GitHub committed 2021-12-01 10:50:10 -08:00
commit 568b5c2571
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ func TestLookupValidSid(t *testing.T) {
} }
func TestLookupEmptyNameFails(t *testing.T) { func TestLookupEmptyNameFails(t *testing.T) {
_, err := LookupSidByName(".\\weoifjdsklfj") _, err := LookupSidByName("")
aerr, ok := err.(*AccountLookupError) aerr, ok := err.(*AccountLookupError)
if !ok || aerr.Err != cERROR_NONE_MAPPED { if !ok || aerr.Err != cERROR_NONE_MAPPED {
t.Fatalf("expected AccountLookupError with ERROR_NONE_MAPPED, got %s", err) t.Fatalf("expected AccountLookupError with ERROR_NONE_MAPPED, got %s", err)