Merge pull request #225 from bitgestalt/fix_test_empty_name

Fix TestLookupEmptyNameFails
This commit is contained in:
Kathryn Baldauf
2021-12-01 10:50:10 -08:00
committed by GitHub
+1 -1
View File
@@ -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)