Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 97d2064

Browse files
committed
chore: fix tests and eslint checks
1 parent dc70359 commit 97d2064

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

‎tests/integration/common/connectionManager.oidc.test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
111111
`${mongodbVersion} Enterprise :: ${context}`,
112112
(integration) => {
113113
function oidcIt(name: string, cb: Parameters<OidcIt>[1]): void {
114-
/* eslint-disable @vitest/expect-expect */
114+
/* eslint-disable vitest/expect-expect */
115115
it(name, { timeout: DEFAULT_TIMEOUT }, async (context) => {
116116
context.skip(
117117
await isCommunityServer(integration),
@@ -124,7 +124,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
124124

125125
await cb?.(context, integration);
126126
});
127-
/* eslint-disable @vitest/expect-expect */
127+
/* eslint-enable vitest/expect-expect */
128128
}
129129

130130
beforeEach(async () => {
@@ -154,8 +154,6 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
154154
}
155155

156156
const baseTestMatrix = [
157-
{ version: "7.0.22", nonce: false },
158-
{ version: "7.0.22", nonce: true },
159157
{ version: "8.0.12", nonce: false },
160158
{ version: "8.0.12", nonce: true },
161159
] as const;
@@ -169,12 +167,16 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
169167
signal
170168
);
171169

172-
conststatus: {
170+
typeConnectionStatus= {
173171
authInfo: {
174172
authenticatedUsers: { user: string; db: string }[];
175173
authenticatedUserRoles: { role: string; db: string }[];
176174
};
177-
} = (await state.serviceProvider.runCommand("admin", { connectionStatus: 1 })) as any;
175+
};
176+
177+
const status: ConnectionStatus = (await state.serviceProvider.runCommand("admin", {
178+
connectionStatus: 1,
179+
})) as unknown as ConnectionStatus;
178180

179181
expect(status.authInfo.authenticatedUsers[0]).toEqual({ user: "dev/testuser", db: "$external" });
180182
expect(status.authInfo.authenticatedUserRoles[0]).toEqual({

‎tests/integration/fixtures/curl.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/usr/bin/env node
2-
import fetch from 'node-fetch';
2+
import fetch from "node-fetch";
33

44
if (process.env.MONGOSH_E2E_TEST_CURL_ALLOW_INVALID_TLS) {
5-
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
5+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
66
}
77

88
// fetch() an URL and ignore the response body
99
(async function () {
10-
(await fetch(process.argv[2])).body?.resume();
11-
})().catch(err => { process.nextTick(() => { throw err; }); });
10+
(await fetch(process.argv[2])).body?.resume();
11+
})().catch((err) => {
12+
process.nextTick(() => {
13+
throw err;
14+
});
15+
});

‎tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function setupMongoDBIntegrationTest(
121121
tmpDir: dbsDir,
122122
logDir: path.join(tmpDir, "mongodb-runner", "logs"),
123123
topology: "standalone",
124-
version: downloadOptions?.version ?? "8.0.10",
124+
version: downloadOptions?.version ?? "8.0.12",
125125
downloadOptions,
126126
args: serverArgs,
127127
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /