Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
import { AwsCredentialIdentity } from '@aws-sdk/types';
import * as path from 'path';
import { Definition, back as nockBack } from 'nock';
import { NodeHttpHandler } from '@smithy/node-http-handler';

import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
import {
Expand Down Expand Up @@ -88,7 +89,12 @@ describe('Bedrock', () => {
};
}

const client = new BedrockRuntimeClient({ region, credentials });
// Use NodeHttpHandler to use HTTP instead of HTTP2 because nock does not support HTTP2
const client = new BedrockRuntimeClient({
region,
credentials,
requestHandler: new NodeHttpHandler(),
});

let nockDone: () => void;
beforeEach(async function () {
Expand Down