[Persistence] Don't evict models on persist

https://github.com/nasa/openmct/issues/745#issuecomment-204559209
This commit is contained in:
Victor Woeltjen 2016-04-01 13:37:21 -07:00
parent 5b98da6681
commit da09ffd3fa
2 changed files with 1 additions and 8 deletions

View File

@ -149,9 +149,6 @@ define(
getKey(domainObject.getId()),
domainObject.getModel()
]).then(function(result){
if (result) {
cacheService.remove(domainObject.getId());
}
return rejectIfFalsey(result, self.$q);
}).catch(function(error){
return notifyOnError(error, domainObject, self.notificationService, self.$q);

View File

@ -176,12 +176,8 @@ define(
expect(mockQ.reject).not.toHaveBeenCalled();
expect(mockNofificationService.error).not.toHaveBeenCalled();
});
});
it("removes the model from the cache", function () {
persistence.persist();
expect(mockCacheService.remove).toHaveBeenCalledWith(id);
});
});
describe("unsuccessful persistence", function() {
var sadPromise = {
then: function(callback){