Skip to content

Commit

Permalink
Fix TestLookupEmptyNameFails
Browse files Browse the repository at this point in the history
TestLookupEmptyNameFails was an identical copy of TestLookupInvalidSid
in the same file. This commit changes the account name queried by the
former to an empty string which is what the name of the test case
suggests.
  • Loading branch information
mversiotech committed Nov 30, 2021
1 parent 60c1574 commit 2f0d85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sd_test.go
Expand Up @@ -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)
Expand Down

0 comments on commit 2f0d85a

Please sign in to comment.