mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
[Persistence] Don't evict models on persist
https://github.com/nasa/openmct/issues/745#issuecomment-204559209
This commit is contained in:
parent
5b98da6681
commit
da09ffd3fa
@ -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);
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user