File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
tests/functional/raw-node/test/GCP/object Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 11const assert = require ( 'assert' ) ;
22const async = require ( 'async' ) ;
33const arsenal = require ( 'arsenal' ) ;
4+ const { promisify } = require ( 'util' ) ;
45const { ListObjectsCommand } = require ( '@aws-sdk/client-s3' ) ;
56const { GCP , GcpUtils } = arsenal . storage . data . external . GCP ;
67const {
@@ -119,15 +120,7 @@ describe('GCP: Complete MPU', function testSuite() {
119120 await async . eachSeries (
120121 buckets ,
121122 async bucket => {
122- await new Promise ( ( resolve , reject ) => {
123- emptyBucket ( gcpClient , bucket . Name , err => {
124- if ( err ) {
125- reject ( err ) ;
126- return ;
127- }
128- resolve ( ) ;
129- } ) ;
130- } ) ;
123+ await promisify ( emptyBucket ) ( gcpClient , bucket . Name ) ;
131124 const cmd = new DeleteBucketCommand ( { Bucket : bucket . Name } ) ;
132125 await gcpRetry ( gcpClient , cmd ) ;
133126 } ,
You can’t perform that action at this time.
0 commit comments