diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs index cef59b40d8..d8fe9732aa 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs @@ -263,13 +263,16 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests string root_folder = "folder_id" + m_rootFolderID + ""; string notecards_folder = "folder_id" + m_notecardsFolder + ""; + string notecards_category = "category_id" + m_notecardsFolder + ""; Assert.That(llsdresponse.Contains(root_folder), "Missing root folder"); Assert.That(llsdresponse.Contains(notecards_folder), "Missing notecards folder"); int count = Regex.Matches(llsdresponse, root_folder).Count; Assert.AreEqual(1, count, "More than 1 root folder in response"); count = Regex.Matches(llsdresponse, notecards_folder).Count; - Assert.AreEqual(2, count, "More than 1 notecards folder in response"); // Notecards will also be under root, so 2 + Assert.AreEqual(1, count, "More than 1 notecards folder in response"); + count = Regex.Matches(llsdresponse, notecards_category).Count; + Assert.AreEqual(1, count, "More than 1 notecards folder in response"); // Notecards will also be a category on root } [Test]