From 2f0d85a3a5dc009ec6994dbed22ed4707e6a2581 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. --- 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)