Skip to content

Commit

Permalink
Merge pull request #839 from stephenplusplus/spp--storage-system-test…
Browse files Browse the repository at this point in the history
…-fixes

storage: allow more time for signed urls to expire
  • Loading branch information
callmehiphop committed Aug 31, 2015
2 parents a4a19b8 + d6c419b commit c8ee597
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions system-test/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,11 @@ describe('storage', function() {
it('should create a signed read url', function(done) {
file.getSignedUrl({
action: 'read',
expires: Date.now() + 5,
expires: Date.now() + 5000
}, function(err, signedReadUrl) {
assert.ifError(err);
request.get(signedReadUrl, function(err, resp, body) {
assert.ifError(err);
assert.equal(body, localFile);
file.delete(done);
});
Expand All @@ -911,10 +912,11 @@ describe('storage', function() {
it('should create a signed delete url', function(done) {
file.getSignedUrl({
action: 'delete',
expires: Date.now() + 5,
expires: Date.now() + 5000
}, function(err, signedDeleteUrl) {
assert.ifError(err);
request.del(signedDeleteUrl, function() {
request.del(signedDeleteUrl, function(err) {
assert.ifError(err);
file.getMetadata(function(err) {
assert.equal(err.code, 404);
done();
Expand Down

0 comments on commit c8ee597

Please sign in to comment.