Commit d5c91fad authored by Tristan Cavelier's avatar Tristan Cavelier

jio tests fakestorage return value bug fixed

parent 1e504c3c
...@@ -39,28 +39,31 @@ ...@@ -39,28 +39,31 @@
param: param, param: param,
options: options, options: options,
success: function () { success: function () {
command.success.apply(command, arguments); var res = command.success.apply(command, arguments);
delete fakestorage[that._id + '/' + method]; delete fakestorage[that._id + '/' + method];
return res;
}, },
error: function () { error: function () {
command.error.apply(command, arguments); var res = command.error.apply(command, arguments);
delete fakestorage[that._id + '/' + method]; delete fakestorage[that._id + '/' + method];
return res;
}, },
retry: function () { retry: function () {
command.retry.apply(command, arguments); var res = command.retry.apply(command, arguments);
delete fakestorage[that._id + '/' + method]; delete fakestorage[that._id + '/' + method];
return res;
}, },
notify: function () { notify: function () {
command.notify.apply(command, arguments); return command.notify.apply(command, arguments);
}, },
storage: function () { storage: function () {
command.storage.apply(command, arguments); return command.storage.apply(command, arguments);
}, },
end: function () { end: function () {
command.end.apply(command, arguments); return command.end.apply(command, arguments);
}, },
commit: function () { commit: function () {
command.commit.apply(command, arguments); return command.commit.apply(command, arguments);
}, },
free: function () { free: function () {
delete fakestorage[that._id + '/' + method]; delete fakestorage[that._id + '/' + method];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment