File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
plugins/node/opentelemetry-instrumentation-aws-sdk/test Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import {
4343import { AwsCredentialIdentity } from '@aws-sdk/types' ;
4444import * as path from 'path' ;
4545import { Definition , back as nockBack } from 'nock' ;
46+ import { NodeHttpHandler } from '@smithy/node-http-handler' ;
4647
4748import { ReadableSpan } from '@opentelemetry/sdk-trace-base' ;
4849import {
@@ -88,7 +89,12 @@ describe('Bedrock', () => {
8889 } ;
8990 }
9091
91- const client = new BedrockRuntimeClient ( { region, credentials } ) ;
92+ // Use NodeHttpHandler to use HTTP instead of HTTP2 because nock does not support HTTP2
93+ const client = new BedrockRuntimeClient ( {
94+ region,
95+ credentials,
96+ requestHandler : new NodeHttpHandler ( ) ,
97+ } ) ;
9298
9399 let nockDone : ( ) => void ;
94100 beforeEach ( async function ( ) {
You can’t perform that action at this time.
0 commit comments