mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fixing a spot I missed in assets. Switching Grid to the new naming schema with Store/Get
This commit is contained in:
@@ -184,7 +184,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
// Commented out for now. The implementation needs to be improved by protecting against race conditions,
|
||||
// probably by making sure that the update doesn't use the UserCacheInfo.UserProfile directly (possibly via
|
||||
// returning a read only class from the cache).
|
||||
// public bool UpdateProfile(UserProfileData userProfile)
|
||||
// public bool StoreProfile(UserProfileData userProfile)
|
||||
// {
|
||||
// lock (m_userProfilesById)
|
||||
// {
|
||||
|
||||
@@ -110,14 +110,14 @@ namespace OpenSim.Framework.Communications.Tests
|
||||
IUserDataPlugin userDataPlugin = commsManager.UserDataPlugin;
|
||||
|
||||
// Check that we can't update info before it exists
|
||||
Assert.That(userCacheService.UpdateProfile(newProfile), Is.False);
|
||||
Assert.That(userCacheService.StoreProfile(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;
|
||||
lus.AddUser(firstName, originalLastName, "pingu", "ted@excellentadventure.com", 1000, 1000, userId);
|
||||
|
||||
Assert.That(userCacheService.UpdateProfile(newProfile), Is.True);
|
||||
Assert.That(userCacheService.StoreProfile(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));
|
||||
|
||||
Reference in New Issue
Block a user