tests: removing username test in favor of status check (#4090)

This commit is contained in:
Nick Anderson 2018-02-07 10:41:37 -08:00 committed by GitHub
parent 0dc59b8d2d
commit 7d7ed9de61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,6 @@ TEST_F(RegistryTablesTest, test_get_username_from_key) {
status = getUsernameFromKey("HKEY_USERS\\S-1-5-19\\Some\\Key", username); status = getUsernameFromKey("HKEY_USERS\\S-1-5-19\\Some\\Key", username);
EXPECT_TRUE(status.ok()); EXPECT_TRUE(status.ok());
EXPECT_TRUE(username == "LOCAL SERVICE");
for (const auto& key : badKeys) { for (const auto& key : badKeys) {
status = getUsernameFromKey(key, username); status = getUsernameFromKey(key, username);
EXPECT_FALSE(status.ok()); EXPECT_FALSE(status.ok());