From 7d7ed9de61fbabf545bdffa6d08d28e934cc2942 Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Wed, 7 Feb 2018 10:41:37 -0800 Subject: [PATCH] tests: removing username test in favor of status check (#4090) --- osquery/tables/system/windows/tests/registry_tests.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/osquery/tables/system/windows/tests/registry_tests.cpp b/osquery/tables/system/windows/tests/registry_tests.cpp index 99f9b1bf..b323fbd7 100644 --- a/osquery/tables/system/windows/tests/registry_tests.cpp +++ b/osquery/tables/system/windows/tests/registry_tests.cpp @@ -150,7 +150,6 @@ TEST_F(RegistryTablesTest, test_get_username_from_key) { status = getUsernameFromKey("HKEY_USERS\\S-1-5-19\\Some\\Key", username); EXPECT_TRUE(status.ok()); - EXPECT_TRUE(username == "LOCAL SERVICE"); for (const auto& key : badKeys) { status = getUsernameFromKey(key, username); EXPECT_FALSE(status.ok());