WIP: better lock
This commit is contained in:
parent
d8e0d50dce
commit
bcb61810d5
7 changed files with 121 additions and 139 deletions
|
|
@ -35,6 +35,11 @@ FakeStorage.prototype.getLock = function(id) {
|
|||
return this.storage[id + '::lock'];
|
||||
}
|
||||
|
||||
FakeStorage.prototype.getSessionId = function() {
|
||||
return this.sessionId || 'aSessionId';
|
||||
};
|
||||
|
||||
|
||||
FakeStorage.prototype.removeLock = function(id) {
|
||||
delete this.storage[id + '::lock'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue