From 3e8a3ad5c39f8912d2ab06e558f42c7f1e9d282b Mon Sep 17 00:00:00 2001 From: Rohan Vazarkar Date: Wed, 13 Nov 2024 16:26:07 -0500 Subject: [PATCH] chore: fix test --- test/unit/LDAPUtilsTest.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/unit/LDAPUtilsTest.cs b/test/unit/LDAPUtilsTest.cs index 41dc3b0a..0641aa6b 100644 --- a/test/unit/LDAPUtilsTest.cs +++ b/test/unit/LDAPUtilsTest.cs @@ -239,11 +239,9 @@ public async Task EnterpriseDomainControllersGroup_CorrectValues() { //We're going to say TESTLAB.LOCAL is forest root, and SECONDARY is a child domain underneath TESTLAB.LOCAL - utilsMock.Setup(x => x.GetDomainNameFromSid("S-1-5-21-3130019616-2776909439-2417379446-2105")) + utilsMock.Setup(x => x.GetDomainNameFromSid("S-1-5-21-3130019616-2776909439-2417379446")) .ReturnsAsync((true, "TESTLAB.LOCAL")); - utilsMock.Setup(x => x.GetDomainNameFromSid("S-1-5-21-3130019616-2776909439-2417379446-2106")) - .ReturnsAsync((true, "TESTLAB.LOCAL")); - utilsMock.Setup(x => x.GetDomainNameFromSid("S-1-5-21-3130019616-2776909439-2417379447-2105")) + utilsMock.Setup(x => x.GetDomainNameFromSid("S-1-5-21-3130019616-2776909439-2417379447")) .ReturnsAsync((true, "SECONDARY.TESTLAB.LOCAL")); utilsMock.Setup(x => x.GetForest("TESTLAB.LOCAL")).ReturnsAsync((true, "TESTLAB.LOCAL"));