Skip to content

Commit

Permalink
storage: allow more time for signed urls to expire
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Aug 31, 2015
1 parent a4a19b8 commit d6c419b
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 d6c419b

Please sign in to comment.