From 05c1e887e749767db10e787e2e3f4e8b3851c2de Mon Sep 17 00:00:00 2001 From: Michael Hofmann Date: Tue, 30 Nov 2021 11:30:24 +0100 Subject: [PATCH] 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 --- sd_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd_test.go b/sd_test.go index 4f3d9814..0621def3 100644 --- a/sd_test.go +++ b/sd_test.go @@ -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)