Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PR #33354

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Test PR #33354

Changes from 1 commit
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
4 changes: 2 additions & 2 deletions sdk/cosmosdb/cosmos/test/public/functional/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ describe("Client Tests", function (this: Suite) {
}
});
});
describe.skip("Validate user passed AbortController.signal", function () {
describe("Validate user passed AbortController.signal", function () {
it("should throw exception if aborted during the request", async function () {
const client = new CosmosClient({ endpoint, key: masterKey });
try {
const controller = new AbortController();
const signal = controller.signal;
setTimeout(() => controller.abort(), 1);
setTimeout(() => controller.abort(), 0.1);
await client.getDatabaseAccount({ abortSignal: signal });
assert.fail("Must throw when trying to connect to database");
} catch (err: any) {
Expand Down