Skip to content

Commit 521a5ce

Browse files
committed
chore: lint
1 parent c1b78d8 commit 521a5ce

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

test/e2e/stream_cache.test.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from "chai"
22
import got from "got"
3-
import { Client, Publisher } from "../../src"
3+
import { Client } from "../../src"
44
import {
55
createClient,
66
createStreamName,
@@ -12,7 +12,7 @@ import {
1212
username,
1313
} from "../support/util"
1414

15-
async function createVhost(vhost: string): Promise<RabbitConnectionResponse> {
15+
async function createVhost(vhost: string): Promise<undefined> {
1616
const port = process.env.RABBIT_MQ_MANAGEMENT_PORT || 15672
1717
const firstNode = getTestNodesFromEnv().shift()!
1818
await got.put<RabbitConnectionResponse>(
@@ -22,7 +22,7 @@ async function createVhost(vhost: string): Promise<RabbitConnectionResponse> {
2222
password: password,
2323
}
2424
)
25-
const res = await got.put<RabbitConnectionResponse>(
25+
await got.put<RabbitConnectionResponse>(
2626
`http://${firstNode.host}:${port}/api/permissions/${vhost}/${username}`,
2727
{
2828
json: {
@@ -61,7 +61,15 @@ describe("cache", () => {
6161
})
6262
beforeEach(async () => {
6363
client = await createClient(username, password)
64-
client2 = await createClient(username, password, null, null, null, null, null, vhost1)
64+
client2 = await createClient(
65+
username,
66+
password,
67+
undefined,
68+
undefined,
69+
undefined,
70+
undefined,
71+
undefined,
72+
vhost1)
6573
streamName = createStreamName()
6674
await client.createStream({ stream: streamName })
6775
await client2.createStream({ stream: streamName })

0 commit comments

Comments
 (0)