mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-08-30 22:06:41 -04:00
Fix TestLookupEmptyNameFails
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. Signed-off-by: Michael Hofmann <michael.hofmann@bitgestalt.com>
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