diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs index 68303b044e..c7f3bfc7b1 100644 --- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs @@ -86,9 +86,11 @@ namespace OpenSim.Framework.Communications.Tests TestCommunicationsManager commsManager = new TestCommunicationsManager(); UserProfileCacheService userCacheService = commsManager.UserProfileCacheService; + IUserDataPlugin userDataPlugin = commsManager.UserDataPlugin; // Check that we can't update info before it exists Assert.That(userCacheService.UpdateProfile(newProfile), Is.False); + Assert.That(userDataPlugin.GetUserByUUID(userId), Is.Null); // Check that we can update a profile once it exists LocalUserServices lus = (LocalUserServices)commsManager.UserService; @@ -97,6 +99,7 @@ namespace OpenSim.Framework.Communications.Tests Assert.That(userCacheService.UpdateProfile(newProfile), Is.True); UserProfileData retrievedProfile = userCacheService.GetUserDetails(userId).UserProfile; Assert.That(retrievedProfile.SurName, Is.EqualTo(newLastName)); + Assert.That(userDataPlugin.GetUserByUUID(userId).SurName, Is.EqualTo(newLastName)); } [Test]