File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
clients/client-s3/test/e2e Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,23 @@ describe("@aws-sdk/client-s3", () => {
123123
124124 it ( "should succeed with valid body payload" , async ( ) => {
125125 // prepare the object.
126- const body = createBuffer ( "1MB" ) ;
127- await client . putObject ( { Bucket, Key, Body : body } ) ;
128- const result = await client . getObject ( { Bucket, Key } ) ;
126+ const body = createBuffer ( "16KB" ) ;
127+
128+ try {
129+ await client . putObject ( { Bucket, Key, Body : body } ) ;
130+ } catch ( e ) {
131+ console . error ( "failed to put" ) ;
132+ throw e ;
133+ }
134+
135+ try {
136+ // eslint-disable-next-line no-var
137+ var result = await client . getObject ( { Bucket, Key } ) ;
138+ } catch ( e ) {
139+ console . error ( "failed to get" ) ;
140+ throw e ;
141+ }
142+
129143 expect ( result . $metadata . httpStatusCode ) . to . equal ( 200 ) ;
130144 if ( isBrowser ) {
131145 expect ( result . Body ) . to . be . instanceOf ( ReadableStream ) ;
@@ -284,7 +298,6 @@ esfuture,29`;
284298 } ) ;
285299 const events : SelectObjectContentEventStream [ ] = [ ] ;
286300 for await ( const event of Payload ! ) {
287- console . log ( event ) ;
288301 events . push ( event ) ;
289302 }
290303 expect ( events . length ) . to . equal ( 3 ) ;
You can’t perform that action at this time.
0 commit comments