Skip to content

Commit 56ad2dd

Browse files
committed
chore: Fix linter warnings
1 parent 44a1308 commit 56ad2dd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/integration/common/apiClient.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ describe("ApiClient integration test", () => {
3838
async function ignoringResult(fn: () => Promise<unknown>): Promise<void> {
3939
try {
4040
await fn();
41-
} catch (error: unknown) {
41+
} catch (_error: unknown) {
42+
void _error;
4243
// we are ignoring the error because we know that
4344
// the type safe client will fail. It will fail
4445
// because we are returning an empty 200, and it expects

tests/integration/fixtures/httpsServerProxyTest.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ export class HTTPServerProxyTestSetup {
8181
return;
8282
}
8383
httpGet(
84-
req.url!,
84+
req.url ?? "<invalid>",
8585
{
8686
createConnection: () => {
87-
const { socket1, socket2 } = new DuplexPair();
88-
this.httpServer.emit("connection", socket2);
89-
return socket1;
87+
const sockets = new DuplexPair();
88+
this.httpServer.emit("connection", sockets.socket2);
89+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
90+
return sockets.socket1;
9091
},
9192
},
9293
(proxyRes) => proxyRes.pipe(res)
@@ -102,7 +103,7 @@ export class HTTPServerProxyTestSetup {
102103
await Promise.all(
103104
[this.httpServer, this.httpsServer, this.httpProxyServer, this.httpsProxyServer].map(async (server) => {
104105
await promisify(server.listen.bind(server, 0))();
105-
server.on("connection", (conn) => this.connections.push(conn));
106+
server.on("connection", (conn: Duplex) => this.connections.push(conn));
106107
})
107108
);
108109
}

0 commit comments

Comments
 (0)