Skip to content

Commit 4afaf38

Browse files
committed
fix: avoid await of non-thenable
1 parent ecb46b4 commit 4afaf38

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/test/shared/awsClientBuilderV3.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ describe('AwsClientBuilderV3', function () {
7878
assert.strictEqual(service.config.userAgent[0][0], 'CUSTOM USER AGENT')
7979
})
8080

81-
it('injects http client into client', async function () {
81+
it('injects http client into client', function () {
8282
const requestHandler = new NodeHttpHandler({
8383
requestTimeout: 1234,
8484
})
85-
const service = await builder.createAwsService({
85+
const service = builder.createAwsService({
8686
serviceClient: Client,
8787
clientOptions: {
8888
requestHandler: requestHandler,
@@ -91,11 +91,11 @@ describe('AwsClientBuilderV3', function () {
9191
assert.strictEqual(service.config.requestHandler, requestHandler)
9292
})
9393

94-
it('defaults to same http client', async function () {
95-
const service = await builder.createAwsService({
94+
it('defaults to same http client', function () {
95+
const service = builder.createAwsService({
9696
serviceClient: Client,
9797
})
98-
const service2 = await builder.createAwsService({
98+
const service2 = builder.createAwsService({
9999
serviceClient: Client,
100100
})
101101
// Check if request handlers are reference-equal.

0 commit comments

Comments
 (0)