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 {
43
43
import { AwsCredentialIdentity } from '@aws-sdk/types' ;
44
44
import * as path from 'path' ;
45
45
import { Definition , back as nockBack } from 'nock' ;
46
+ import { NodeHttpHandler } from '@smithy/node-http-handler' ;
46
47
47
48
import { ReadableSpan } from '@opentelemetry/sdk-trace-base' ;
48
49
import {
@@ -88,7 +89,12 @@ describe('Bedrock', () => {
88
89
} ;
89
90
}
90
91
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
+ } ) ;
92
98
93
99
let nockDone : ( ) => void ;
94
100
beforeEach ( async function ( ) {
You can’t perform that action at this time.
0 commit comments